1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-03-06 08:47:00 +00:00

nix-tools: overwrite $PATH rather than prepending

I don’t see any reason for these scripts to depend on more
environmental state than necessary.
This commit is contained in:
Emily 2025-01-11 15:44:41 +00:00
parent 3d95b01351
commit 4d0ae6980d
2 changed files with 2 additions and 3 deletions

View file

@ -1,7 +1,7 @@
#! @shell@
set -e
set -o pipefail
export PATH=@path@:$PATH
export PATH=@path@
evalNix() {
nix-instantiate --eval --strict "${extraEvalFlags[@]}" -E "with import <darwin> {}; $*" 2>/dev/null

View file

@ -1,8 +1,7 @@
#! @shell@
set -e
set -o pipefail
export PATH=@path@:$PATH
export PATH=@path@
showSyntax() {
echo "darwin-rebuild [--help] {edit | switch | activate | build | check | changelog}" >&2