aboutsummaryrefslogtreecommitdiff
path: root/scripts/nix-profile.sh.in
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2019-10-09 19:38:01 +0200
committerEelco Dolstra <edolstra@gmail.com>2019-10-09 23:35:02 +0200
commit61a6176acaa8522cbcf091a34a663ef45307fef7 (patch)
tree6e0c7da6e3ccd2d140b20e7ed919ab6953e7b3f3 /scripts/nix-profile.sh.in
parent9348f9291e5d9e4ba3c4347ea1b235640f54fd79 (diff)
nix-profile.sh: Remove coreutils dependency
Diffstat (limited to 'scripts/nix-profile.sh.in')
-rw-r--r--scripts/nix-profile.sh.in6
1 files changed, 2 insertions, 4 deletions
diff --git a/scripts/nix-profile.sh.in b/scripts/nix-profile.sh.in
index 087f6ee57..ed4d1a639 100644
--- a/scripts/nix-profile.sh.in
+++ b/scripts/nix-profile.sh.in
@@ -1,6 +1,4 @@
if [ -n "$HOME" ] && [ -n "$USER" ]; then
- __savedpath="$PATH"
- export PATH=@coreutils@
# Set up the per-user profile.
# This part should be kept in sync with nixpkgs:nixos/modules/programs/shell.nix
@@ -47,6 +45,6 @@ if [ -n "$HOME" ] && [ -n "$USER" ]; then
export MANPATH="$NIX_LINK/share/man:$MANPATH"
fi
- export PATH="$NIX_LINK/bin:$__savedpath"
- unset __savedpath NIX_LINK NIX_USER_PROFILE_DIR
+ export PATH="$NIX_LINK/bin:$PATH"
+ unset NIX_LINK NIX_USER_PROFILE_DIR
fi