hdf5_1_10: Add java support
This commit is contained in:
parent
2b1cc5092e
commit
36cce52a78
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue