31 lines
815 B
Nix
31 lines
815 B
Nix
{stdenv, fetchsvn, jdk6, ant_1_7, commons-logging_1_0_3}: stdenv.mkDerivation rec {
|
|
pname = "commons-discovery";
|
|
version = "20030211.213356";
|
|
outJar = "commons-discovery.jar";
|
|
|
|
src = fetchsvn {
|
|
url = "https://svn.apache.org/repos/asf/commons/dormant/discovery/tags/DISCOVERY_0_2";
|
|
rev = "1928317";
|
|
hash = "sha256-3UOP9Bj1XvA7CtWZRgVDfcYaOrS2Drn8//KUG/sb49U=";
|
|
};
|
|
|
|
patches = [./commons-discovery.patch];
|
|
|
|
nativeBuildInputs = [jdk6 ant_1_7];
|
|
|
|
env = {
|
|
JAVA_HOME="${jdk6}";
|
|
CLASSPATH="${commons-logging_1_0_3}/commons-logging.jar";
|
|
};
|
|
|
|
buildPhase = ''
|
|
ln -s /build/discovery-DISCOVERY_0_2-r1928317/LICENSE.txt /build/LICENSE
|
|
ant dist
|
|
'';
|
|
|
|
installPhase = ''
|
|
mkdir $out
|
|
cp -r ./dist/* $out/
|
|
'';
|
|
}
|