commit a60c2539a6057c74c0a63cdee2f4e883c8c3b388
parent 146a2d9ac02a18cb81fafc66df165108b1792d6a
Author: Daniel Barlow <dan@telent.net>
Date: Wed, 4 Sep 2024 21:21:02 +0100
remove luaposix ref in write-fennel
Diffstat:
1 file changed, 0 insertions(+), 1 deletion(-)
diff --git a/pkgs/write-fennel/default.nix b/pkgs/write-fennel/default.nix
@@ -31,7 +31,6 @@ stdenv.mkDerivation {
echo "#!${lua}/bin/lua ${luaFlags}"
echo "package.path = ${lib.strings.escapeShellArg (concatStringsSep "" luapath)} .. package.path"
echo "package.cpath = ${lib.strings.escapeShellArg (concatStringsSep "" luacpath)} .. package.cpath"
- echo "local ok, stdlib = pcall(require,'posix.stdlib'); if ok then stdlib.setenv('PATH',${lib.escapeShellArg (lib.makeBinPath packages)} .. \":\" .. os.getenv('PATH')) end"
echo "local ok, ll = pcall(require,'lualinux'); if ok then ll.setenv('PATH',${lib.escapeShellArg (lib.makeBinPath packages)} .. \":\" .. os.getenv('PATH')) end"
fennel ${if macropath != "" then "--add-macro-path ${lib.strings.escapeShellArg macropath}" else ""} ${if correlate then "--correlate" else ""} --compile ${source}
) > ${name}.lua