hdf5_1_10: Add java support

This commit is contained in:
Stefan Frijters 2021-05-07 19:03:53 +02:00 committed by Jonathan Ringer
parent 2b1cc5092e
commit 36cce52a78
1 changed files with 7 additions and 1 deletions

View File

@ -3,6 +3,8 @@
, removeReferencesTo , removeReferencesTo
, zlib ? null , zlib ? null
, enableShared ? !stdenv.hostPlatform.isStatic , enableShared ? !stdenv.hostPlatform.isStatic
, javaSupport ? false
, jdk
}: }:
let inherit (lib) optional optionals; in let inherit (lib) optional optionals; in
@ -17,11 +19,15 @@ stdenv.mkDerivation rec {
outputs = [ "out" "dev" ]; outputs = [ "out" "dev" ];
buildInputs = optional javaSupport jdk;
nativeBuildInputs = [ removeReferencesTo ]; nativeBuildInputs = [ removeReferencesTo ];
propagatedBuildInputs = optional (zlib != null) zlib; propagatedBuildInputs = optional (zlib != null) zlib;
configureFlags = optional enableShared "--enable-shared"; configureFlags = []
++ optional enableShared "--enable-shared"
++ optional javaSupport "--enable-java";
patches = [ patches = [
./bin-mv.patch ./bin-mv.patch