summary refs log tree commit diff
path: root/pkgs/stdenv/generic
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2004-03-09 10:27:42 +0000
committerEelco Dolstra <eelco.dolstra@logicblox.com>2004-03-09 10:27:42 +0000
commit70d26112f2f8b928a857672daf324a4b41d2422e (patch)
tree8afa07dd45977edbb2c83e0d0ec521490122c669 /pkgs/stdenv/generic
parent946a2d4a4824d415e3c2c306dd7b4c1360946662 (diff)
downloadnixlib-70d26112f2f8b928a857672daf324a4b41d2422e.tar
nixlib-70d26112f2f8b928a857672daf324a4b41d2422e.tar.gz
nixlib-70d26112f2f8b928a857672daf324a4b41d2422e.tar.bz2
nixlib-70d26112f2f8b928a857672daf324a4b41d2422e.tar.lz
nixlib-70d26112f2f8b928a857672daf324a4b41d2422e.tar.xz
nixlib-70d26112f2f8b928a857672daf324a4b41d2422e.tar.zst
nixlib-70d26112f2f8b928a857672daf324a4b41d2422e.zip
* Set the TZ variable to UTC to prevent silly errors in date strings.
* Bug fix in PATH initialisation.

svn path=/nixpkgs/trunk/; revision=818
Diffstat (limited to 'pkgs/stdenv/generic')
-rw-r--r--pkgs/stdenv/generic/setup.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/pkgs/stdenv/generic/setup.sh b/pkgs/stdenv/generic/setup.sh
index 4530a1b1319a..c1b2ef99236b 100644
--- a/pkgs/stdenv/generic/setup.sh
+++ b/pkgs/stdenv/generic/setup.sh
@@ -21,6 +21,7 @@ param5=@param5@
 . @preHook@
 
 
+# Hack: run gcc's setup hook.
 if test -f @gcc@/nix-support/setup-hook; then
     . @gcc@/nix-support/setup-hook
 fi
@@ -85,10 +86,16 @@ export NIX_CFLAGS_STRIP="-g0 -Wl,-s"
 export NIX_STORE=$(dirname $out)/ # !!! hack
 
 
+# Set the TZ (timezone) environment variable, otherwise commands like
+# `date' will complain (e.g., `Tue Mar 9 10:01:47 Local time zone must
+# be set--see zic manual page 2004').
+export TZ=UTC
+
+
 # Execute the post-hook.
 . @postHook@
 
-PATH=$_PATH${_PATH}$PATH
+PATH=$_PATH${_PATH:+:}$PATH
 if test "$NIX_DEBUG" = "1"; then
     echo "Final path: $PATH"
 fi