1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-25 06:31:14 +02:00

* Generate the scripts so that we can substitute the prefix

etc. correctly.
* Fixed nix-switch.
This commit is contained in:
Eelco Dolstra 2003-07-13 18:58:03 +00:00
parent 5304a1eb3a
commit 9c620e4afa
6 changed files with 23 additions and 24 deletions

20
scripts/nix-profile.sh.in Normal file
View file

@ -0,0 +1,20 @@
#if test -z "$NIX_SET"; then
# export NIX_SET=1
NIX_LINKS=@localstatedir@/nix/links/current
export PATH=$NIX_LINKS/bin:@prefix@/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
export CPLUS_INCLUDE_PATH=$NIX_LINKS/include:$CPLUS_INCLUDE_PATH
export PKG_CONFIG_PATH=$NIX_LINKS/lib/pkgconfig:$PKG_CONFIG_PATH
# export MANPATH=$NIX_LINKS/man:$MANPATH
#fi