Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 22 lines 377 B view raw
1#!@shell@ 2 3OLDPATH="$PATH" 4OLDTZ="$TZ" 5OLD_http_proxy="$http_proxy" 6OLD_ftp_proxy="$http_proxy" 7source @myenvpath@ 8 9PATH="$PATH:$OLDPATH" 10export PS1="\n@name@:[\u@\h:\w]\$ " 11export NIX_MYENV_NAME="@name@" 12export buildInputs 13export TZ="$OLDTZ" 14export http_proxy="$OLD_http_proxy" 15export ftp_proxy="$OLD_ftp_proxy" 16 17if test $# -gt 0; then 18 exec "$@" 19else 20 exec @shell@ 21fi 22