add /usr/bin/env fix from nixpkgs

This commit is contained in:
FalsePattern 2025-01-20 11:35:47 +01:00
parent 11ba419356
commit 23af4428c3
No known key found for this signature in database
GPG key ID: E930CDEC50C50E23

View file

@ -24,6 +24,8 @@
[ -d docs ] && cp -r docs/* $out/doc [ -d docs ] && cp -r docs/* $out/doc
[ -d doc ] && cp -r doc/* $out/doc [ -d doc ] && cp -r doc/* $out/doc
cp -r lib/* $out/lib cp -r lib/* $out/lib
substituteInPlace $out/lib/std/zig/system.zig \
--replace "/usr/bin/env" "${pkgs.lib.getExe' pkgs.coreutils "env"}"
cp zig $out/bin/zig cp zig $out/bin/zig
''; '';
}; };