diff --git a/pkgs/development/libraries/netcdf/default.nix b/pkgs/development/libraries/netcdf/default.nix index 4f44bff5352d..8fde7050b97a 100644 --- a/pkgs/development/libraries/netcdf/default.nix +++ b/pkgs/development/libraries/netcdf/default.nix @@ -30,6 +30,10 @@ in stdenv.mkDerivation rec { for a in ncdap_test/Makefile.am ncdap_test/Makefile.in; do substituteInPlace $a --replace testurl.sh " " done + + # Prevent building the tests from prepending `#!/bin/bash` and wiping out the patched shenbangs. + substituteInPlace nczarr_test/Makefile.in \ + --replace '#!/bin/bash' '${stdenv.shell}' ''; nativeBuildInputs = [ m4 removeReferencesTo ];