mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
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:
parent
036a7fb976
commit
82667fee37
1 changed files with 8 additions and 0 deletions
|
@ -1,5 +1,7 @@
|
|||
{ stdenv
|
||||
, fetchurl
|
||||
, gcc
|
||||
, removeReferencesTo
|
||||
, cpp ? false
|
||||
, gfortran ? null
|
||||
, zlib ? null
|
||||
|
@ -30,6 +32,8 @@ stdenv.mkDerivation rec {
|
|||
inherit mpi;
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ removeReferencesTo ];
|
||||
|
||||
buildInputs = []
|
||||
++ optional (gfortran != null) gfortran
|
||||
++ optional (szip != null) szip;
|
||||
|
@ -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 = ''
|
||||
|
|
Loading…
Reference in a new issue