summary refs log tree commit diff
path: root/pkgs/build-support/setup-hooks/patch-shebangs.sh
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2015-09-17 16:54:07 +0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2015-09-17 16:54:07 +0200
commit276e38a1bb8ab19aed754977523bcc6b8161dc0c (patch)
tree7c5542d373fb46604243341133d089ea822a64ad /pkgs/build-support/setup-hooks/patch-shebangs.sh
parent8dc707354692798b4fa365625dd92ab7f51d8673 (diff)
downloadnixpkgs-276e38a1bb8ab19aed754977523bcc6b8161dc0c.tar
nixpkgs-276e38a1bb8ab19aed754977523bcc6b8161dc0c.tar.gz
nixpkgs-276e38a1bb8ab19aed754977523bcc6b8161dc0c.tar.bz2
nixpkgs-276e38a1bb8ab19aed754977523bcc6b8161dc0c.tar.lz
nixpkgs-276e38a1bb8ab19aed754977523bcc6b8161dc0c.tar.xz
nixpkgs-276e38a1bb8ab19aed754977523bcc6b8161dc0c.tar.zst
nixpkgs-276e38a1bb8ab19aed754977523bcc6b8161dc0c.zip
patchShebangs: Ignore outputs that don't exist yet
Diffstat (limited to 'pkgs/build-support/setup-hooks/patch-shebangs.sh')
-rw-r--r--pkgs/build-support/setup-hooks/patch-shebangs.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/build-support/setup-hooks/patch-shebangs.sh b/pkgs/build-support/setup-hooks/patch-shebangs.sh
index 152755992f6..9d8cd0217a5 100644
--- a/pkgs/build-support/setup-hooks/patch-shebangs.sh
+++ b/pkgs/build-support/setup-hooks/patch-shebangs.sh
@@ -5,7 +5,7 @@
 # rewritten to /nix/store/<hash>/bin/python.  Interpreters that are
 # already in the store are left untouched.
 
-fixupOutputHooks+=('if [ -z "$dontPatchShebangs" ]; then patchShebangs "$prefix"; fi')
+fixupOutputHooks+=('if [ -z "$dontPatchShebangs" -a -e "$prefix" ]; then patchShebangs "$prefix"; fi')
 
 patchShebangs() {
     local dir="$1"