diff options
author | Randy Eckenrode <randy@largeandhighquality.com> | 2023-09-06 21:59:30 -0400 |
---|---|---|
committer | Randy Eckenrode <randy@largeandhighquality.com> | 2023-09-06 22:06:44 -0400 |
commit | 1f03581c0cf5bff9da82b9e20c900da069b50480 (patch) | |
tree | 89c21da37516ade114aab31d5381ff2db99d9f97 /pkgs/development/libraries/netcdf | |
parent | b6ea266e8360ecaeb1354786dbf3ecba46313de6 (diff) |
netcdf: fix tests on Linux
`nczarr_test/Makefile.am` prepends new shebang lines to the start of some tests when they are built, which breaks tests on Linux because `/bin/bash` does not exist.
Diffstat (limited to 'pkgs/development/libraries/netcdf')
-rw-r--r-- | pkgs/development/libraries/netcdf/default.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/development/libraries/netcdf/default.nix b/pkgs/development/libraries/netcdf/default.nix index 4f44bff5352d6..8fde7050b97a3 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 ]; |