diff --git a/examples/acquire-delegated-prefix.nix b/examples/acquire-delegated-prefix.nix index a6ea221..2726138 100644 --- a/examples/acquire-delegated-prefix.nix +++ b/examples/acquire-delegated-prefix.nix @@ -2,7 +2,8 @@ writeFennelScript , linotify , anoia +, lua }: writeFennelScript "acquire-delegated-prefix" - [ linotify anoia ] + [ linotify anoia lua.pkgs.luafilesystem ] ./acquire-delegated-prefix.fnl diff --git a/examples/acquire-wan-address.nix b/examples/acquire-wan-address.nix index 2039899..3773d35 100644 --- a/examples/acquire-wan-address.nix +++ b/examples/acquire-wan-address.nix @@ -2,8 +2,9 @@ writeFennel , linotify , anoia +, lua }: writeFennel "acquire-wan-address" { - packages = [ linotify anoia ]; + packages = [ linotify anoia lua.pkgs.luafilesystem ]; mainFunction = "run"; } ./acquire-wan-address.fnl diff --git a/pkgs/anoia/default.nix b/pkgs/anoia/default.nix index 5af98ae..a3a49a2 100644 --- a/pkgs/anoia/default.nix +++ b/pkgs/anoia/default.nix @@ -9,6 +9,7 @@ in stdenv.mkDerivation { version = "0.1"; src = ./.; nativeBuildInputs = [ fennel ]; + buildInputs = with lua.pkgs; [ luafilesystem ]; buildPhase = '' for f in *.fnl ; do fennel --compile $f > `basename $f .fnl`.lua diff --git a/pkgs/odhcp-script/default.nix b/pkgs/odhcp-script/default.nix index 02a671d..523729f 100644 --- a/pkgs/odhcp-script/default.nix +++ b/pkgs/odhcp-script/default.nix @@ -1,4 +1,6 @@ { writeFennelScript +, anoia +, lua }: -writeFennelScript "odhcpc-script" [] ./odhcp6-script.fnl +writeFennelScript "odhcpc-script" [anoia lua.pkgs.luafilesystem] ./odhcp6-script.fnl