diff options
author | Thomas Tuegel <ttuegel@mailbox.org> | 2019-09-25 10:13:12 -0500 |
---|---|---|
committer | Thomas Tuegel <ttuegel@mailbox.org> | 2019-09-25 13:07:20 -0500 |
commit | 6cbf0b4bd22017f11f25d4b44e7cfaa02f3029dc (patch) | |
tree | ef4b7f38c1664604b2961f3fa8f1644d792a8a77 /pkgs/tools/misc/hdf5 | |
parent | 0f5769df77e25a5504ec8e0b41608d625315be2a (diff) |
hdf5: Use multiple outputs to reduce closure size
Diffstat (limited to 'pkgs/tools/misc/hdf5')
-rw-r--r-- | pkgs/tools/misc/hdf5/default.nix | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/tools/misc/hdf5/default.nix b/pkgs/tools/misc/hdf5/default.nix index 336010718dda9..3296c0a4f9282 100644 --- a/pkgs/tools/misc/hdf5/default.nix +++ b/pkgs/tools/misc/hdf5/default.nix @@ -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 = { |