add rxi/json lua module
This commit is contained in:
parent
9550772cec
commit
a1ff07b063
@ -93,6 +93,7 @@ in {
|
|||||||
preinit = callPackage ./preinit { };
|
preinit = callPackage ./preinit { };
|
||||||
pseudofile = callPackage ./pseudofile { };
|
pseudofile = callPackage ./pseudofile { };
|
||||||
routeros = callPackage ./routeros { };
|
routeros = callPackage ./routeros { };
|
||||||
|
rxi-json = callPackage ./rxi-json { };
|
||||||
run-liminix-vm = callPackage ./run-liminix-vm { };
|
run-liminix-vm = callPackage ./run-liminix-vm { };
|
||||||
s6-init-bin = callPackage ./s6-init-bin { };
|
s6-init-bin = callPackage ./s6-init-bin { };
|
||||||
s6-rc-database = callPackage ./s6-rc-database { };
|
s6-rc-database = callPackage ./s6-rc-database { };
|
||||||
|
14
pkgs/rxi-json/default.nix
Normal file
14
pkgs/rxi-json/default.nix
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
fetchurl,
|
||||||
|
runCommand,
|
||||||
|
lua,
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
src = fetchurl {
|
||||||
|
url = "https://raw.githubusercontent.com/rxi/json.lua/11077824d7cfcd28a4b2f152518036b295e7e4ce/json.lua";
|
||||||
|
hash = "sha256-DqzNpX+rwDMHNt4l9Fz1iYIaQrXg/gLk4xJffcC/K34=";
|
||||||
|
};
|
||||||
|
in runCommand "json" {} ''
|
||||||
|
mkdir -p $out/share/lua/${lua.luaversion}/
|
||||||
|
cp ${src} $out/share/lua/${lua.luaversion}/json.lua
|
||||||
|
''
|
Loading…
Reference in New Issue
Block a user