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.
This commit is contained in:
Randy Eckenrode 2023-09-06 21:59:30 -04:00
parent b6ea266e83
commit 1f03581c0c
No known key found for this signature in database
GPG key ID: 64C1CD4EC2A600D9

View file

@ -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 ];