liminix

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 277c91acdf917522302f29e10f46b39221ef94f1
parent e0725489ca56a795441c1c502034d3cd2977f778
Author: Daniel Barlow <dan@telent.net>
Date:   Fri,  6 Sep 2024 00:32:05 +0100

Revert "remove luaposix ref in write-fennel"

This reverts commit a60c2539a6057c74c0a63cdee2f4e883c8c3b388.

Diffstat:
Mpkgs/write-fennel/default.nix | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/pkgs/write-fennel/default.nix b/pkgs/write-fennel/default.nix @@ -31,6 +31,7 @@ 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