diff options
author | Matthew Bauer <mjbauer95@gmail.com> | 2019-02-08 20:48:50 -0500 |
---|---|---|
committer | Matthew Bauer <mjbauer95@gmail.com> | 2019-04-26 21:54:48 -0400 |
commit | a1533dfc414961bb723937c111f5fe0925411f75 (patch) | |
tree | 00d4012931485c7a830791c06c1f7c81befebc04 /pkgs/build-support/setup-hooks | |
parent | 61bc03c017f18e2fe54d209ae8ba8a42033b9564 (diff) | |
download | nixpkgs-a1533dfc414961bb723937c111f5fe0925411f75.tar nixpkgs-a1533dfc414961bb723937c111f5fe0925411f75.tar.gz nixpkgs-a1533dfc414961bb723937c111f5fe0925411f75.tar.bz2 nixpkgs-a1533dfc414961bb723937c111f5fe0925411f75.tar.lz nixpkgs-a1533dfc414961bb723937c111f5fe0925411f75.tar.xz nixpkgs-a1533dfc414961bb723937c111f5fe0925411f75.tar.zst nixpkgs-a1533dfc414961bb723937c111f5fe0925411f75.zip |
patch-shebangs: fix dev detection
$output = $outputDev is the right condition. ${!outputDev} is only useful if you want a path.
Diffstat (limited to 'pkgs/build-support/setup-hooks')
-rw-r--r-- | pkgs/build-support/setup-hooks/patch-shebangs.sh | 2 |
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 441f230869b..c7497819799 100644 --- a/pkgs/build-support/setup-hooks/patch-shebangs.sh +++ b/pkgs/build-support/setup-hooks/patch-shebangs.sh @@ -105,7 +105,7 @@ patchShebangsAuto () { # 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). - if [ "$output" != out ] && [ "$output" = "${!outputDev}" ]; then + if [ "$output" != out ] && [ "$output" = "$outputDev" ]; then patchShebangs --build "$prefix" else patchShebangs --host "$prefix" |