feat: add luarc-to-json
and mk-luarc
helpers
This commit is contained in:
parent
b674635702
commit
6c5c893f0d
1 changed files with 30 additions and 30 deletions
|
@ -14,7 +14,7 @@
|
|||
flake-parts.lib.mkFlake {inherit inputs;} {
|
||||
flake = {
|
||||
overlays.default = final: prev: {
|
||||
mk-luarc-json = {
|
||||
mk-luarc = {
|
||||
# list of plugins that have a /lua directory
|
||||
nvim ? final.neovim-unwrapped,
|
||||
neodev-types ? "stable",
|
||||
|
@ -29,7 +29,7 @@
|
|||
then "${plugin}/lua"
|
||||
else "${plugin}/lib/lua/5.1")
|
||||
plugins;
|
||||
luarc = {
|
||||
in {
|
||||
runtime.version = "LuaJIT";
|
||||
Lua = {
|
||||
globals = [
|
||||
|
@ -59,8 +59,7 @@
|
|||
};
|
||||
};
|
||||
};
|
||||
in
|
||||
final.runCommand ".luarc.json" {
|
||||
luarc-to-json = luarc: final.runCommand ".luarc.json" {
|
||||
buildInputs = [
|
||||
final.jq
|
||||
];
|
||||
|
@ -71,6 +70,7 @@
|
|||
jq . <"$rawJSONPath"
|
||||
} >$out
|
||||
'';
|
||||
mk-luarc-json = attrs: final.luarc-to-json (final.mk-luarc attrs);
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue