https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
3 lines
57 B
Bash
3 lines
57 B
Bash
PATH=/usr/local/bin/:/usr/bin/
|
|
CWD=SUBST_CWD
|
|
SUBST_ARGV0
|