2004-01-05 12:18:59 +01:00
|
|
|
if test -n "$HOME"; then
|
|
|
|
NIX_LINK="$HOME/.nix-userenv"
|
2003-04-09 14:26:48 +02:00
|
|
|
|
2004-01-05 12:18:59 +01:00
|
|
|
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
|
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
|