about summary refs log tree commit diff
path: root/scripts/nix-profile.sh
blob: 977210165bdaf024c40eb5f94ee23330cee3a703 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
if test -z "$NIX_SET"; then

    export NIX_SET=1

    NIX_LINKS=/nix/var/nix/links/current

    export PATH=$NIX_LINKS/bin:/nix/bin:$PATH

    export LD_LIBRARY_PATH=$NIX_LINKS/lib:$LD_LIBRARY_PATH

    export LIBRARY_PATH=$NIX_LINKS/lib:$LIBRARY_PATH

    export C_INCLUDE_PATH=$NIX_LINKS/include:$C_INCLUDE_PATH

fi