2004-01-05 12:18:59 +01:00
|
|
|
if test -n "$HOME"; then
|
2004-02-06 11:30:20 +01:00
|
|
|
NIX_LINK="$HOME/.nix-profile"
|
2003-04-09 14:26:48 +02:00
|
|
|
|
2004-01-16 16:17:36 +01:00
|
|
|
if ! test -L "$NIX_LINK"; then
|
2004-01-05 12:18:59 +01:00
|
|
|
echo "creating $NIX_LINK"
|
2004-02-06 11:30:20 +01:00
|
|
|
_NIX_DEF_LINK=@localstatedir@/nix/profiles/default
|
2005-10-11 19:30:57 +02:00
|
|
|
@coreutils@/ln -s "$_NIX_DEF_LINK" "$NIX_LINK"
|
2004-01-05 12:18:59 +01:00
|
|
|
fi
|
2003-04-09 14:26:48 +02:00
|
|
|
|
2004-01-05 12:18:59 +01:00
|
|
|
export PATH=$NIX_LINK/bin:@prefix@/bin:$PATH
|
|
|
|
fi
|