nix-profile.sh: Remove coreutils dependency
(cherry picked from commit 61a6176acaa8522cbcf091a34a663ef45307fef7)
This commit is contained in:
parent
2522757e83
commit
1c10f739eb
1 changed files with 2 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue