BefatorNix/jdk/xerces.nix
2025-09-05 17:38:49 +02:00

32 lines
898 B
Nix

{stdenv, fetchFromGitHub, ant_1_6, gnu-classpath_93, jamvm_1_5_1, ecj, breakpointHook}: stdenv.mkDerivation rec {
pname = "xerces";
version = "2.7.1";
src = fetchFromGitHub {
owner = "apache";
repo = "xerces-j";
rev = "4a19c3c7c6a432f1a1ae014f0a15b9eb7c58749e";
hash = "sha256-TytmgIGVGOLVln3fB/DuxdXkfva34hJbEiV7TFJiHr4=";
};
patches = [./xerces.patch];
nativeBuildInputs = [ant_1_6 jamvm_1_5_1];
buildInputs = [breakpointHook];
env = {
JAVA_HOME="${gnu-classpath_93}";
CLASSPATH="${ecj}/bin/ecj.jar";
ANT_OPTS="-Dbuild.compiler=org.eclipse.jdt.core.JDTCompilerAdapter -Dbootclasspath=${gnu-classpath_93}/share/classpath/glibj.zip";
};
buildPhase = ''
ant jar
'';
installPhase = ''
mkdir -p $out/bin
cp -r ./build/xercesImpl.jar $out/bin/xercesImpl.jar
'';
}