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 eb7c50a993.
This commit is contained in:
Daiderd Jordan
2018-11-14 23:37:31 +01:00
parent 25fafd2eb5
commit c9223a17bc
2 changed files with 9 additions and 3 deletions
@@ -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"