nixpkgs/pkgs/misc/my-env/loadenv.sh
Lluís Batlle i Rossell 63ffd27a6b Fixing my-env to get NIX_CFLAGS_COMPILE and so on
Yes, I still use my-env. I tested that it works on 16.03.
2016-03-09 12:44:29 +01:00

24 lines
402 B
Bash

#!@shell@
OLDPATH="$PATH"
OLDTZ="$TZ"
OLD_http_proxy="$http_proxy"
OLD_ftp_proxy="$http_proxy"
source @myenvpath@
PATH="$PATH:$OLDPATH"
export PS1="\n@name@:[\u@\h:\w]\$ "
export NIX_MYENV_NAME="@name@"
export buildInputs
export NIX_STRIP_DEBUG=0
export TZ="$OLDTZ"
export http_proxy="$OLD_http_proxy"
export ftp_proxy="$OLD_ftp_proxy"
if test $# -gt 0; then
exec "$@"
else
exec @shell@
fi