summary refs log tree commit diff
path: root/pkgs/build-support/setup-hooks/patch-shebangs.sh
diff options
context:
space:
mode:
authorDaiderd Jordan <daiderd@gmail.com>2018-11-14 19:41:50 +0100
committerDaiderd Jordan <daiderd@gmail.com>2018-11-14 23:37:31 +0100
commitc9223a17bc86fda888b36b7fde9ebc5bed3f0463 (patch)
tree365fc15319d53f8c63f7bf6b03b61014d1cc0275 /pkgs/build-support/setup-hooks/patch-shebangs.sh
parent25fafd2eb5599c6d61357964f9802c260c81556a (diff)
downloadnixpkgs-c9223a17bc86fda888b36b7fde9ebc5bed3f0463.tar
nixpkgs-c9223a17bc86fda888b36b7fde9ebc5bed3f0463.tar.gz
nixpkgs-c9223a17bc86fda888b36b7fde9ebc5bed3f0463.tar.bz2
nixpkgs-c9223a17bc86fda888b36b7fde9ebc5bed3f0463.tar.lz
nixpkgs-c9223a17bc86fda888b36b7fde9ebc5bed3f0463.tar.xz
nixpkgs-c9223a17bc86fda888b36b7fde9ebc5bed3f0463.tar.zst
nixpkgs-c9223a17bc86fda888b36b7fde9ebc5bed3f0463.zip
Revert "patch-shebangs: use --build for auto patch shebangs"
Completely breaks darwin. Every package in the stdenv that has shebangs
in the output will end up with references to bootstrap-tools.

This reverts commit eb7c50a993833ecdb94cc3affb55ac4c560edf50.
Diffstat (limited to 'pkgs/build-support/setup-hooks/patch-shebangs.sh')
-rw-r--r--pkgs/build-support/setup-hooks/patch-shebangs.sh4
1 files changed, 1 insertions, 3 deletions
diff --git a/pkgs/build-support/setup-hooks/patch-shebangs.sh b/pkgs/build-support/setup-hooks/patch-shebangs.sh
index b35c3c87625..441f230869b 100644
--- a/pkgs/build-support/setup-hooks/patch-shebangs.sh
+++ b/pkgs/build-support/setup-hooks/patch-shebangs.sh
@@ -102,12 +102,10 @@ patchShebangs() {
 patchShebangsAuto () {
     if [ -z "$dontPatchShebangs" -a -e "$prefix" ]; then
 
-        if [ -z "${strictDeps-}"]; then
-            patchShebangs --build "$prefix"
         # Dev output will end up being run on the build platform. An
         # example case of this is sdl2-config. Otherwise, we can just
         # use the runtime path (--host).
-        elif [ "$output" != out ] && [ "$output" = "${!outputDev}" ]; then
+        if [ "$output" != out ] && [ "$output" = "${!outputDev}" ]; then
             patchShebangs --build "$prefix"
         else
             patchShebangs --host "$prefix"