2004-01-05 13:18:59 +02:00
|
|
|
if test -n "$HOME"; then
|
2004-02-06 12:30:20 +02:00
|
|
|
NIX_LINK="$HOME/.nix-profile"
|
2003-04-09 15:26:48 +03:00
|
|
|
|
2004-01-16 17:17:36 +02:00
|
|
|
if ! test -L "$NIX_LINK"; then
|
2006-03-10 11:41:28 +02:00
|
|
|
echo "creating $NIX_LINK" >&2
|
2004-02-06 12:30:20 +02:00
|
|
|
_NIX_DEF_LINK=@localstatedir@/nix/profiles/default
|
2005-10-11 20:30:57 +03:00
|
|
|
@coreutils@/ln -s "$_NIX_DEF_LINK" "$NIX_LINK"
|
2004-01-05 13:18:59 +02:00
|
|
|
fi
|
2003-04-09 15:26:48 +03:00
|
|
|
|
2008-11-20 19:22:42 +02:00
|
|
|
export PATH=$NIX_LINK/bin:$PATH
|
|
|
|
fi
|
|
|
|
|
|
|
|
# This is a quick hack to make fontconfig-based packages in Nixpkgs
|
|
|
|
# work out of the box on non-NixOS systems. Of course, we should
|
|
|
|
# really fix fontconfig...
|
|
|
|
if test -z "$FONTCONFIG_FILE" -a -e /etc/fonts/fonts.conf; then
|
|
|
|
export FONTCONFIG_FILE=/etc/fonts/fonts.conf
|
2004-01-05 13:18:59 +02:00
|
|
|
fi
|