28 lines
712 B
Nix
28 lines
712 B
Nix
{stdenv, fetchzip, jdk6, ant_1_7, commons-logging_1_0_4}: stdenv.mkDerivation rec {
|
|
pname = "commons-httpclient";
|
|
version = "2.0.2";
|
|
outJar = "commons-httpclient.jar";
|
|
|
|
src = fetchzip {
|
|
url = "https://archive.apache.org/dist/httpcomponents/commons-httpclient/2.0/source/commons-httpclient-2.0.2-src.tar.gz";
|
|
hash = "sha256-klzcXmhDaNFAxnrSV8fFERqg9SIgypsknqSXmCeweHw=";
|
|
};
|
|
|
|
nativeBuildInputs = [jdk6 ant_1_7];
|
|
|
|
env = {
|
|
JAVA_HOME="${jdk6}";
|
|
CLASSPATH="${commons-logging_1_0_4}/commons-logging.jar";
|
|
};
|
|
|
|
buildPhase = ''
|
|
mkdir ./lib
|
|
ant dist
|
|
'';
|
|
|
|
installPhase = ''
|
|
mkdir $out
|
|
cp -r ./dist/* $out/
|
|
'';
|
|
}
|