30 lines
845 B
Nix
30 lines
845 B
Nix
{stdenv, fetchFromGitHub, jdk6, ant_1_7, commons-logging_1_0, commons-collections_2_0, commons-beanutils_1_4}: stdenv.mkDerivation rec {
|
|
pname = "commons-digester";
|
|
version = "1.3";
|
|
outJar = "commons-digester.jar";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "apache";
|
|
repo = pname;
|
|
rev = "DIGESTER_1_3";
|
|
hash = "sha256-tgmyaeAtC85ULH6mLPmH/ej2fqqL8oLAHV+sPpfY8ok=";
|
|
};
|
|
|
|
nativeBuildInputs = [jdk6 ant_1_7];
|
|
|
|
env = {
|
|
JAVA_HOME="${jdk6}";
|
|
CLASSPATH="${commons-logging_1_0}/commons-logging.jar:${commons-collections_2_0}/commons-collections.jar:${commons-beanutils_1_4}/commons-beanutils.jar";
|
|
};
|
|
|
|
buildPhase = ''
|
|
ln -s /build/source/LICENSE.txt /build/LICENSE
|
|
ant dist
|
|
'';
|
|
|
|
installPhase = ''
|
|
mkdir $out
|
|
cp -r ./dist/* $out/
|
|
'';
|
|
}
|