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