40 lines
1.2 KiB
Nix
40 lines
1.2 KiB
Nix
{stdenv, fetchFromGitHub, jdk6, ant_1_7, commons-logging_1_0_2, commons-collections_2_1, commons-beanutils_1_5,
|
|
commons-digester_1_3, junit_3_8_1}: stdenv.mkDerivation rec {
|
|
pname = "commons-betwixt";
|
|
version = "1.0-beta-1.20030111.103454";
|
|
outJar = "commons-betwixt-1.0-beta-1.jar";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ripdajacker";
|
|
repo = pname;
|
|
rev = "b1de472d6def58e7fe09ada90c75728742adca2c";
|
|
hash = "sha256-etb3aD+NCFVhCLCk2XO0V2EB7Et7bmjLaQZYRqytbpA=";
|
|
};
|
|
|
|
patches = [./commons-betwixt.patch];
|
|
|
|
nativeBuildInputs = [jdk6 ant_1_7];
|
|
|
|
env = {
|
|
JAVA_HOME="${jdk6}";
|
|
};
|
|
|
|
configurePhase = ''
|
|
mkdir lib
|
|
ln -s ${commons-logging_1_0_2}/commons-logging.jar lib/commons-logging-1.0.2.jar
|
|
ln -s ${commons-beanutils_1_5}/commons-beanutils.jar lib/commons-beanutils-1.5.jar
|
|
ln -s ${commons-collections_2_1}/commons-collections.jar lib/commons-collections-2.1.jar
|
|
ln -s ${commons-digester_1_3}/commons-digester.jar lib/commons-digester.jar
|
|
ln -s ${junit_3_8_1}/junit.jar lib/junit-3.8.1.jar
|
|
'';
|
|
|
|
buildPhase = ''
|
|
ant dist -Dnoget=true
|
|
'';
|
|
|
|
installPhase = ''
|
|
mkdir $out
|
|
cp -r ./dist/* $out/
|
|
'';
|
|
}
|