BefatorNix/java/commons-collections.nix
2025-09-07 21:28:57 +02:00

30 lines
647 B
Nix

{stdenv, fetchFromGitHub, jdk6, ant_1_7}: stdenv.mkDerivation rec {
pname = "commons-collections";
version = "3.1";
outJar = "commons-collections-3.1.jar";
src = fetchFromGitHub {
owner = "apache";
repo = pname;
rev = "collections-3.1";
hash = "sha256-7Nv2zbhYkChp8h0f5BlYK3WGunhVyCbeH6m3hheWg8Y=";
};
patches = [./commons-collections.patch];
nativeBuildInputs = [jdk6 ant_1_7];
env = {
JAVA_HOME="${jdk6}";
};
buildPhase = ''
ant dist
'';
installPhase = ''
mkdir $out
cp -r ./build/bin/commons-collections-3.1/* $out/
'';
}