summary refs log tree commit diff
path: root/pkgs/stdenv
diff options
context:
space:
mode:
authorEelco Dolstra2014-01-17 12:41:08 +0100
committerEelco Dolstra2014-01-17 12:41:08 +0100
commit48f87d5d2a0cd3670b77d01c82a089b535237c6a (patch)
tree957518139305dd780fd846a0e283ab5e7c63ae95 /pkgs/stdenv
parent86afcccecb02b340c157f07364b7168b4689f048 (diff)
fixupPhase: Handle the case where $prefix doesn't exist
http://hydra.nixos.org/build/8149154
Diffstat (limited to 'pkgs/stdenv')
-rw-r--r--pkgs/stdenv/generic/setup.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/stdenv/generic/setup.sh b/pkgs/stdenv/generic/setup.sh
index 47e90fb05609..3a192b820282 100644
--- a/pkgs/stdenv/generic/setup.sh
+++ b/pkgs/stdenv/generic/setup.sh
@@ -733,7 +733,7 @@ fixupPhase() {
     runHook preFixup
 
     # Make sure everything is writable so "strip" et al. work.
-    chmod -R u+w "$prefix"
+    if [ -e "$prefix" ]; then chmod -R u+w "$prefix"; fi
 
     # Put man/doc/info under $out/share.
     forceShare=${forceShare:=man doc info}