mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-13 01:36:15 +02:00
f83c5e3e5f
the symlink ~/.nix-userenv to the given argument (which defaults to .../links/current). /etc/profile.d/nix-profile creates this symlink if it doesn't exist yet. Example use: $ nix-env -l my_profile -i foo.nix subversion quake $ nix-env -p my_profile I don't like the term "profile". Let's deprecate it :-)
11 lines
288 B
Bash
11 lines
288 B
Bash
if test -n "$HOME"; then
|
|
NIX_LINK="$HOME/.nix-userenv"
|
|
|
|
if ! test -a "$NIX_LINK"; then
|
|
echo "creating $NIX_LINK"
|
|
_NIX_DEF_LINK=@localstatedir@/nix/links/current
|
|
ln -s "$_NIX_DEF_LINK" "$NIX_LINK"
|
|
fi
|
|
|
|
export PATH=$NIX_LINK/bin:@prefix@/bin:$PATH
|
|
fi
|