liminix/pkgs/ifwait/default.nix

15 lines
335 B
Nix
Raw Normal View History

{
2023-07-02 19:19:54 +02:00
lua
, netlink-lua
, lualinux
, iwinfo
, writeFennelScript
, runCommand
2024-03-11 23:16:49 +01:00
, anoia
}:
2023-07-02 19:19:54 +02:00
runCommand "ifwait" {} ''
mkdir -p $out/bin
cp -p ${writeFennelScript "ifwait" [ anoia netlink-lua ] ./ifwait.fnl} $out/bin/ifwait
cp -p ${writeFennelScript "ifbridgeable" [ anoia lualinux iwinfo ] ./ifbridgeable.fnl} $out/bin/ifbridgeable
''