hdf5: remove references to stdenv.cc

The build provides as text a summary of the build, including the
absolute path of the compiler used for compilation.  Unfortunately, this
pulls in stdenv.cc as a transitive closure.

So this change just calls remove-references-to as a postInstall step for
the one stdenv.cc dependency.

See #29889 for details.
This commit is contained in:
Sukant Hajra 2017-09-28 02:09:16 -05:00 committed by Frederik Rietdijk
parent 036a7fb976
commit 82667fee37

View file

@ -1,5 +1,7 @@
{ stdenv { stdenv
, fetchurl , fetchurl
, gcc
, removeReferencesTo
, cpp ? false , cpp ? false
, gfortran ? null , gfortran ? null
, zlib ? null , zlib ? null
@ -30,6 +32,8 @@ stdenv.mkDerivation rec {
inherit mpi; inherit mpi;
}; };
nativeBuildInputs = [ removeReferencesTo ];
buildInputs = [] buildInputs = []
++ optional (gfortran != null) gfortran ++ optional (gfortran != null) gfortran
++ optional (szip != null) szip; ++ optional (szip != null) szip;
@ -47,6 +51,10 @@ stdenv.mkDerivation rec {
patches = [./bin-mv.patch]; patches = [./bin-mv.patch];
postInstall = ''
find "$out" -type f -exec remove-references-to -t ${stdenv.cc} '{}' +
'';
meta = { meta = {
description = "Data model, library, and file format for storing and managing data"; description = "Data model, library, and file format for storing and managing data";
longDescription = '' longDescription = ''