about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAndreas Herrmann <andreash87@gmx.ch>2014-06-15 11:12:03 +0200
committerAndreas Herrmann <andreash87@gmx.ch>2014-06-22 20:05:20 +0200
commit4528ebf509663c3aa0f4c4445575653aa1c6ffe6 (patch)
tree84ac1aca1b613ca7fe069c8e98a7c6054d697260
parent9ae6cc5967fea7c1f9b217a85103f57c35e39e2f (diff)
downloadnixlib-4528ebf509663c3aa0f4c4445575653aa1c6ffe6.tar
nixlib-4528ebf509663c3aa0f4c4445575653aa1c6ffe6.tar.gz
nixlib-4528ebf509663c3aa0f4c4445575653aa1c6ffe6.tar.bz2
nixlib-4528ebf509663c3aa0f4c4445575653aa1c6ffe6.tar.lz
nixlib-4528ebf509663c3aa0f4c4445575653aa1c6ffe6.tar.xz
nixlib-4528ebf509663c3aa0f4c4445575653aa1c6ffe6.tar.zst
nixlib-4528ebf509663c3aa0f4c4445575653aa1c6ffe6.zip
hdf5: Add zlib as optional dependency
This adds addition compression modes to the hdf5 library.

I am adding this, because pytables depends on it.
-rw-r--r--pkgs/tools/misc/hdf5/default.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/tools/misc/hdf5/default.nix b/pkgs/tools/misc/hdf5/default.nix
index 01820aaf7780..8b1f8a3b9644 100644
--- a/pkgs/tools/misc/hdf5/default.nix
+++ b/pkgs/tools/misc/hdf5/default.nix
@@ -1,6 +1,7 @@
 
 { stdenv
 , fetchurl
+, zlib ? null
 }:
 stdenv.mkDerivation {
   name = "hdf5-1.8.10-patch1";
@@ -8,7 +9,9 @@ stdenv.mkDerivation {
     url = http://www.hdfgroup.org/ftp/HDF5/current/src/hdf5-1.8.10-patch1.tar.gz;
     sha256 = "08ad32fhnci6rdfn6mn3w9v1wcaxdcd326n3ljwkcq4dzhkh28qz";  			
   };
-  buildInputs = [] ;
+
+  buildInputs = []
+    ++ stdenv.lib.optional (zlib != null) zlib;
   
   patches = [./bin-mv.patch];