hdf5_1_10: Add java support

This commit is contained in:
Stefan Frijters
2021-05-07 10:48:26 -07:00
committed by Jonathan Ringer
parent 2b1cc5092e
commit 36cce52a78
+7 -1
View File
@@ -3,6 +3,8 @@
, removeReferencesTo
, zlib ? null
, enableShared ? !stdenv.hostPlatform.isStatic
, javaSupport ? false
, jdk
}:
let inherit (lib) optional optionals; in
@@ -17,11 +19,15 @@ stdenv.mkDerivation rec {
outputs = [ "out" "dev" ];
buildInputs = optional javaSupport jdk;
nativeBuildInputs = [ removeReferencesTo ];
propagatedBuildInputs = optional (zlib != null) zlib;
configureFlags = optional enableShared "--enable-shared";
configureFlags = []
++ optional enableShared "--enable-shared"
++ optional javaSupport "--enable-java";
patches = [
./bin-mv.patch