mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 15:33:13 +00:00
Merge pull request #266110 from linsui/jsw
java-service-wrapper: build with latest jdk
This commit is contained in:
commit
1308c646c7
@ -1,6 +1,10 @@
|
||||
{ lib, stdenv, fetchurl
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchurl
|
||||
, jdk
|
||||
, ant, cunit, ncurses
|
||||
, ant
|
||||
, cunit
|
||||
, ncurses
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
@ -12,18 +16,25 @@ stdenv.mkDerivation rec {
|
||||
hash = "sha256-t16i1WqvDqr4J5sDldeUk6+DAyN/6oWGV6eME5yj+i4=";
|
||||
};
|
||||
|
||||
buildInputs = [ jdk ];
|
||||
nativeBuildInputs = [ ant cunit ncurses ];
|
||||
strictDeps = true;
|
||||
|
||||
buildInputs = [ cunit ncurses ];
|
||||
|
||||
nativeBuildInputs = [ ant jdk ];
|
||||
|
||||
postConfigure = ''
|
||||
substituteInPlace default.properties \
|
||||
--replace "javac.target.version=1.4" "javac.target.version=8"
|
||||
'';
|
||||
|
||||
buildPhase = ''
|
||||
runHook preBuild
|
||||
|
||||
export ANT_HOME=${ant}
|
||||
export JAVA_HOME=${jdk}/lib/openjdk/jre/
|
||||
export JAVA_HOME=${jdk}/lib/openjdk/
|
||||
export JAVA_TOOL_OPTIONS=-Djava.home=$JAVA_HOME
|
||||
export CLASSPATH=${jdk}/lib/openjdk/lib/tools.jar
|
||||
|
||||
${if stdenv.isi686 then "./build32.sh" else "./build64.sh"}
|
||||
ant -f build.xml -Dbits=${if stdenv.isi686 then "32" else "64"}
|
||||
|
||||
runHook postBuild
|
||||
'';
|
||||
|
@ -16497,9 +16497,7 @@ with pkgs;
|
||||
|
||||
jasmin = callPackage ../development/compilers/jasmin { };
|
||||
|
||||
java-service-wrapper = callPackage ../tools/system/java-service-wrapper {
|
||||
jdk = jdk8; # TODO: remove override https://github.com/NixOS/nixpkgs/pull/89731
|
||||
};
|
||||
java-service-wrapper = callPackage ../tools/system/java-service-wrapper { };
|
||||
|
||||
jna = callPackage ../development/java-modules/jna { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user