ipv6 prefix delegation for rotuer

much tidying needed, but it works
This commit is contained in:
Daniel Barlow 2023-05-31 23:29:05 +01:00
parent d82173133c
commit 3f4dbfcfd3
7 changed files with 123 additions and 5 deletions

View file

@ -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
View 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}/"
'';
}

View file

@ -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
''