hdf5: Use multiple outputs to reduce closure size
This commit is contained in:
parent
0f5769df77
commit
6cbf0b4bd2
|
@ -28,6 +28,8 @@ stdenv.mkDerivation rec {
|
|||
inherit mpi;
|
||||
};
|
||||
|
||||
outputs = [ "out" "dev" ];
|
||||
|
||||
nativeBuildInputs = [ removeReferencesTo ];
|
||||
|
||||
buildInputs = []
|
||||
|
@ -51,6 +53,7 @@ stdenv.mkDerivation rec {
|
|||
|
||||
postInstall = ''
|
||||
find "$out" -type f -exec remove-references-to -t ${stdenv.cc} '{}' +
|
||||
moveToOutput bin/h5cc "''${!outputDev}"
|
||||
'';
|
||||
|
||||
meta = {
|
||||
|
|
Loading…
Reference in a new issue