liminix-fork/pkgs/ifwait/default.nix
2023-05-29 20:20:12 +01:00

13 lines
263 B
Nix

{
luaSmall
, netlink-lua
, writeFennelScript
, runCommand
}:
let
lua = luaSmall;
netlink = netlink-lua.override {inherit lua;};
in runCommand "ifwait" {} ''
mkdir -p $out/bin
cp -p ${writeFennelScript "ifwait" [netlink] ./ifwait.fnl} $out/bin/ifwait
''