mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 23:22:37 +00: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,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 New Issue
Block a user