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:
parent
3d95b01351
commit
4d0ae6980d
2 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue