ipv6 prefix delegation for rotuer
much tidying needed, but it works
This commit is contained in:
@@ -23,6 +23,7 @@
|
||||
kernel-backport = callPackage ./kernel-backport {};
|
||||
mac80211 = callPackage ./mac80211 {};
|
||||
netlink-lua = callPackage ./netlink-lua {};
|
||||
linotify = callPackage ./linotify {};
|
||||
ifwait = callPackage ./ifwait {};
|
||||
|
||||
gen_init_cpio = callPackage ./gen_init_cpio {};
|
||||
|
19
pkgs/linotify/default.nix
Normal file
19
pkgs/linotify/default.nix
Normal file
@@ -0,0 +1,19 @@
|
||||
{ lua, lib, fetchFromGitHub }:
|
||||
let pname = "linotify";
|
||||
in lua.pkgs.buildLuaPackage {
|
||||
inherit pname;
|
||||
version = "0.5";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
repo = "linotify";
|
||||
owner = "hoelzro";
|
||||
rev = "a56913e9c0922befb65227a00cf69c2e8052de1a";
|
||||
hash = "sha256-IlOJbGx1zbOR3vgNMsNTPsarhPANpzl7jsu33LEbIqY=";
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p "$out/lib/lua/${lua.luaversion}"
|
||||
cp inotify.so "$out/lib/lua/${lua.luaversion}/"
|
||||
'';
|
||||
|
||||
}
|
@@ -15,7 +15,7 @@ in name : packages : source :
|
||||
echo "#!${lua}/bin/lua"
|
||||
echo "package.path = ${lib.strings.escapeShellArg luapath} .. package.path"
|
||||
echo "package.cpath = ${lib.strings.escapeShellArg luacpath} .. package.cpath"
|
||||
${lua.pkgs.fennel}/bin/fennel --compile ${source}
|
||||
${lua.pkgs.fennel}/bin/fennel --correlate --compile ${source}
|
||||
) > $out
|
||||
chmod a+x $out
|
||||
''
|
||||
|
Reference in New Issue
Block a user