31 lines
657 B
Nix
31 lines
657 B
Nix
{stdenv, fetchFromGitHub, jdk6, ant_1_7}: stdenv.mkDerivation rec {
|
|
pname = "commons-logging";
|
|
version = "1.0.2";
|
|
outJar = "commons-logging.jar";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "apache";
|
|
repo = pname;
|
|
rev = "LOGGING_1_0_2";
|
|
hash = "sha256-qHq2kvXlWU8IAn+ojb5C08NVq539B/IcmCYBj9A4X5A=";
|
|
};
|
|
|
|
patches = [./commons-logging.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/
|
|
'';
|
|
}
|