add /usr/bin/env fix from nixpkgs

This commit is contained in:
FalsePattern 2025-01-20 11:35:47 +01:00
parent 6826e02b51
commit 3fe2293ba5
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 doc ] && cp -r doc/* $out/doc
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
'';
};