diff options
author | Stefan Frijters <sfrijters@gmail.com> | 2021-05-07 19:03:53 +0200 |
---|---|---|
committer | Jonathan Ringer <jonringer@users.noreply.github.com> | 2021-05-07 10:48:26 -0700 |
commit | 36cce52a784ab72e0aa15e06931621cc4f1058e8 (patch) | |
tree | e2afe575be86afc11d11c96f11c5505d550ae611 | |
parent | 2b1cc5092e0ef6cfa7e0a5a10443550749de8500 (diff) |
hdf5_1_10: Add java support
-rw-r--r-- | pkgs/tools/misc/hdf5/1.10.nix | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/pkgs/tools/misc/hdf5/1.10.nix b/pkgs/tools/misc/hdf5/1.10.nix index 1a972daf6104a..b8b40d83022c1 100644 --- a/pkgs/tools/misc/hdf5/1.10.nix +++ b/pkgs/tools/misc/hdf5/1.10.nix @@ -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 |