summary refs log tree commit diff
path: root/pkgs/stdenv/generic/setup.sh
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2014-07-01 17:39:07 +0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-08-09 12:45:52 +0200
commite3875297fac671f20feb803306e7c55789ac749e (patch)
tree78ed6e882780936e75411429cdc1e4d41a6c309c /pkgs/stdenv/generic/setup.sh
parentbe3fc3ae2f3a782226d2b8b8ec36c37f18fa12a3 (diff)
downloadnixlib-e3875297fac671f20feb803306e7c55789ac749e.tar
nixlib-e3875297fac671f20feb803306e7c55789ac749e.tar.gz
nixlib-e3875297fac671f20feb803306e7c55789ac749e.tar.bz2
nixlib-e3875297fac671f20feb803306e7c55789ac749e.tar.lz
nixlib-e3875297fac671f20feb803306e7c55789ac749e.tar.xz
nixlib-e3875297fac671f20feb803306e7c55789ac749e.tar.zst
nixlib-e3875297fac671f20feb803306e7c55789ac749e.zip
stdenv: Don't use sed to build the setup script
Diffstat (limited to 'pkgs/stdenv/generic/setup.sh')
-rw-r--r--pkgs/stdenv/generic/setup.sh14
1 files changed, 6 insertions, 8 deletions
diff --git a/pkgs/stdenv/generic/setup.sh b/pkgs/stdenv/generic/setup.sh
index 675d8ce797d1..6ed94673ae70 100644
--- a/pkgs/stdenv/generic/setup.sh
+++ b/pkgs/stdenv/generic/setup.sh
@@ -163,7 +163,7 @@ shopt -s nullglob
 
 # Set up the initial path.
 PATH=
-for i in @initialPath@; do
+for i in $initialPath; do
     if [ "$i" = / ]; then i=; fi
     addToSearchPath PATH $i/bin
     addToSearchPath PATH $i/sbin
@@ -174,17 +174,15 @@ if [ "$NIX_DEBUG" = 1 ]; then
 fi
 
 
-# Execute the pre-hook.
-export SHELL=@shell@
-export CONFIG_SHELL="$SHELL"
-if [ -z "$shell" ]; then export shell=@shell@; fi
-runHook preHook
-
-
 # Check that the pre-hook initialised SHELL.
 if [ -z "$SHELL" ]; then echo "SHELL not set"; exit 1; fi
 
 
+# Execute the pre-hook.
+export CONFIG_SHELL="$SHELL"
+if [ -z "$shell" ]; then export shell=$SHELL; fi
+
+
 envHooks=()
 crossEnvHooks=()