mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 05:33:23 +00:00
fea8454d35
There are few build scripts which set them to `nodtd.invalid` to disable downloading files by buildscript. But for user environment we should restore original values
24 lines
402 B
Bash
24 lines
402 B
Bash
#!/bin/sh
|
|
|
|
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
|
|
|