28 lines
759 B
Nix
28 lines
759 B
Nix
{stdenv, fetchzip, jdk6, ant_1_7, commons-logging_1_1, commons-codec}: stdenv.mkDerivation rec {
|
|
pname = "commons-httpclient";
|
|
version = "3.0";
|
|
outJar = "commons-httpclient.jar";
|
|
|
|
src = fetchzip {
|
|
url = "https://archive.apache.org/dist/httpcomponents/commons-httpclient/3.0/source/commons-httpclient-3.0-src.zip";
|
|
hash = "sha256-MY9Tg/pX6efI3nmdbNs1r9U2aQaGxLcTytzg4IjmftA=";
|
|
};
|
|
|
|
nativeBuildInputs = [jdk6 ant_1_7];
|
|
|
|
env = {
|
|
JAVA_HOME="${jdk6}";
|
|
CLASSPATH="${commons-logging_1_1}/commons-logging-1.1.jar:${commons-codec}/commons-codec-1.3.jar";
|
|
};
|
|
|
|
buildPhase = ''
|
|
mkdir ./lib
|
|
ant dist
|
|
'';
|
|
|
|
installPhase = ''
|
|
mkdir $out
|
|
cp -r ./dist/* $out/
|
|
'';
|
|
}
|