diff options
author | Mario Rodas <marsam@users.noreply.github.com> | 2020-08-16 00:37:40 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-16 00:37:40 -0500 |
commit | 49dc0245c4a8579068eb76991688c88c787cd26b (patch) | |
tree | 790b5807739ac9b47ab035ed051db0a0b8c0031f /pkgs | |
parent | 3bb54189b0c8132752fff320a3bf441118119a5e (diff) | |
parent | b460e8bbb49f22adb6af23a8391bbc7b8649a8a3 (diff) |
Merge pull request #90116 from purcell/netcdf-no-gcc-at-runtime
netcdf: prevent bogus runtime dependency on gcc
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/libraries/netcdf/default.nix | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/pkgs/development/libraries/netcdf/default.nix b/pkgs/development/libraries/netcdf/default.nix index 2e16f58d9fb5..fecc4100f5e6 100644 --- a/pkgs/development/libraries/netcdf/default.nix +++ b/pkgs/development/libraries/netcdf/default.nix @@ -3,6 +3,7 @@ , hdf5 , m4 , curl # for DAP +, removeReferencesTo }: let @@ -26,7 +27,7 @@ in stdenv.mkDerivation rec { done ''; - nativeBuildInputs = [ m4 ]; + nativeBuildInputs = [ m4 removeReferencesTo ]; buildInputs = [ hdf5 curl mpi ]; passthru = { @@ -42,6 +43,12 @@ in stdenv.mkDerivation rec { ] ++ (stdenv.lib.optionals mpiSupport [ "--enable-parallel-tests" "CC=${mpi}/bin/mpicc" ]); + disallowedReferences = [ stdenv.cc ]; + + postFixup = '' + remove-references-to -t ${stdenv.cc} "$(readlink -f $out/lib/libnetcdf.settings)" + ''; + doCheck = !mpiSupport; meta = { |