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
|
2006-03-10 10:41:28 +01:00
|
|
|
echo "creating $NIX_LINK" >&2
|
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
|
|
|
|
2008-11-20 18:22:42 +01: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 12:18:59 +01:00
|
|
|
fi
|