BefatorNix/java/commons-lang_1.nix
2025-09-21 17:18:28 +02:00

31 lines
645 B
Nix

{stdenv, fetchFromGitHub, jdk6, ant_1_7}: stdenv.mkDerivation rec {
pname = "commons-lang";
version = "1.0";
outJar = "commons-lang-1.0.jar";
src = fetchFromGitHub {
owner = "apache";
repo = pname;
rev = "LANG_1_0";
hash = "sha256-qE7t4xHM/4zUXIv/hWp6yPw+9SmcG7gbzYH2YxrkJIY=";
};
patches = [./commons-lang.patch];
nativeBuildInputs = [jdk6 ant_1_7];
env = {
JAVA_HOME="${jdk6}";
};
buildPhase = ''
ln -s /build/source/LICENSE.txt /build/LICENSE
ant dist
'';
installPhase = ''
mkdir $out
cp -r ./dist/* $out/
'';
}