diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2003-07-13T18·58+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2003-07-13T18·58+0000 |
commit | 9c620e4afa03e63ddaff2979396144de8d9298a5 (patch) | |
tree | 7bfabf03cd1665a9049763b31ce42305d85af13e /scripts/nix-profile.sh.in | |
parent | 5304a1eb3a2bbcc379924d3f5a58b64ce77f4849 (diff) |
* Generate the scripts so that we can substitute the prefix
etc. correctly. * Fixed nix-switch.
Diffstat (limited to 'scripts/nix-profile.sh.in')
-rw-r--r-- | scripts/nix-profile.sh.in | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/scripts/nix-profile.sh.in b/scripts/nix-profile.sh.in new file mode 100644 index 000000000000..3a64caa04989 --- /dev/null +++ b/scripts/nix-profile.sh.in @@ -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 |