hdf5: Add szip as an optional dependency

This adds additional compression modes to hdf5.

Note: The szip license may not be compatible with everyone's use case. Hence,
it is an optional dependency.
This commit is contained in:
Andreas Herrmann 2014-06-15 13:26:44 +02:00
parent c24e85f3a5
commit d1f7bc7bcf

View File

@ -2,6 +2,7 @@
{ stdenv { stdenv
, fetchurl , fetchurl
, zlib ? null , zlib ? null
, szip ? null
}: }:
stdenv.mkDerivation { stdenv.mkDerivation {
name = "hdf5-1.8.10-patch1"; name = "hdf5-1.8.10-patch1";
@ -11,7 +12,10 @@ stdenv.mkDerivation {
}; };
buildInputs = [] buildInputs = []
++ stdenv.lib.optional (zlib != null) zlib; ++ stdenv.lib.optional (zlib != null) zlib
++ stdenv.lib.optional (szip != null) szip;
configureFlags = if szip != null then "--with-szlib=${szip}" else "";
patches = [./bin-mv.patch]; patches = [./bin-mv.patch];