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;
|
inherit mpi;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
outputs = [ "out" "dev" ];
|
||||||
|
|
||||||
nativeBuildInputs = [ removeReferencesTo ];
|
nativeBuildInputs = [ removeReferencesTo ];
|
||||||
|
|
||||||
buildInputs = []
|
buildInputs = []
|
||||||
@ -51,6 +53,7 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
find "$out" -type f -exec remove-references-to -t ${stdenv.cc} '{}' +
|
find "$out" -type f -exec remove-references-to -t ${stdenv.cc} '{}' +
|
||||||
|
moveToOutput bin/h5cc "''${!outputDev}"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user