diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2019-10-09T17·38+0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2019-10-09T21·57+0200 |
commit | 1c10f739eb38492fd48d69e914c6a64278a02dfa (patch) | |
tree | 4975dc042c901af8945b8c51eacd03154a0c758d /scripts | |
parent | 2522757e8344468c07083903380dc3f0f9f20039 (diff) |
nix-profile.sh: Remove coreutils dependency
(cherry picked from commit 61a6176acaa8522cbcf091a34a663ef45307fef7)
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/nix-profile.sh.in | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/scripts/nix-profile.sh.in b/scripts/nix-profile.sh.in index 8e70c68b285b..8567f5125857 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 @@ -59,6 +57,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 |