29 lines
727 B
Nix
29 lines
727 B
Nix
{stdenv, fetchFromGitHub, jdk6, ant_1_7, commons-logging_1_0, commons-collections_2_0}: stdenv.mkDerivation rec {
|
|
pname = "commons-beanutils";
|
|
version = "1.6.1";
|
|
outJar = "commons-beanutils.jar";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "apache";
|
|
repo = pname;
|
|
rev = "BEANUTILS_1_6_1";
|
|
hash = "sha256-AaUVo9mlvEt+UA95eL+F7p1YOKxAUYhYTCT8XXb5hNM=";
|
|
};
|
|
|
|
nativeBuildInputs = [jdk6 ant_1_7];
|
|
|
|
env = {
|
|
JAVA_HOME="${jdk6}";
|
|
CLASSPATH="${commons-logging_1_0}/commons-logging.jar:${commons-collections_2_0}/commons-collections.jar";
|
|
};
|
|
|
|
buildPhase = ''
|
|
ant dist
|
|
'';
|
|
|
|
installPhase = ''
|
|
mkdir $out
|
|
cp -r ./dist/* $out/
|
|
'';
|
|
}
|