Skip to content

Commit

Permalink
hdf5: remove references to stdenv.cc
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
shajra authored and FRidh committed Sep 28, 2017
1 parent 036a7fb commit 82667fe
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pkgs/tools/misc/hdf5/default.nix
@@ -1,5 +1,7 @@
{ stdenv
, fetchurl
, gcc
, removeReferencesTo
, cpp ? false
, gfortran ? null
, zlib ? null
Expand Down Expand Up @@ -30,6 +32,8 @@ stdenv.mkDerivation rec {
inherit mpi;
};

nativeBuildInputs = [ removeReferencesTo ];

buildInputs = []
++ optional (gfortran != null) gfortran
++ optional (szip != null) szip;
Expand All @@ -47,6 +51,10 @@ stdenv.mkDerivation rec {

patches = [./bin-mv.patch];

postInstall = ''
find "$out" -type f -exec remove-references-to -t ${stdenv.cc} '{}' +
'';

meta = {
description = "Data model, library, and file format for storing and managing data";
longDescription = ''
Expand Down

0 comments on commit 82667fe

Please sign in to comment.