forked from lix-project/lix
nix-profile.sh: Remove coreutils dependency
This commit is contained in:
parent
9348f9291e
commit
61a6176aca
|
@ -1,6 +1,4 @@
|
||||||
if [ -n "$HOME" ] && [ -n "$USER" ]; then
|
if [ -n "$HOME" ] && [ -n "$USER" ]; then
|
||||||
__savedpath="$PATH"
|
|
||||||
export PATH=@coreutils@
|
|
||||||
|
|
||||||
# Set up the per-user profile.
|
# Set up the per-user profile.
|
||||||
# This part should be kept in sync with nixpkgs:nixos/modules/programs/shell.nix
|
# 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"
|
export MANPATH="$NIX_LINK/share/man:$MANPATH"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
export PATH="$NIX_LINK/bin:$__savedpath"
|
export PATH="$NIX_LINK/bin:$PATH"
|
||||||
unset __savedpath NIX_LINK NIX_USER_PROFILE_DIR
|
unset NIX_LINK NIX_USER_PROFILE_DIR
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue