38 lines
1.5 KiB
Nix
38 lines
1.5 KiB
Nix
{stdenv, fetchurl, fetchFromGitHub, jdk6, ant_1_7, commons-logging_1_0_3, commons-cli-bootstrap, dom4j, commons-collections_2_1,
|
|
commons-beanutils_1_6, commons-jexl, commons-discovery, jaxen, saxpath, junit_3_7}: stdenv.mkDerivation rec {
|
|
pname = "commons-jelly";
|
|
version = "20030902.160215";
|
|
outJar = "commons-jelly-1.0-beta-4-SNAPSHOT.jar";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "apache";
|
|
repo = pname;
|
|
rev = "717379e1b4db3edcc1404bd33242d6342530ad88";
|
|
hash = "sha256-FACLrmbwn7Z0eYc7vb54O35Lu9j/a+7dB0+Jv6/xDUk=";
|
|
};
|
|
|
|
servletApi = fetchurl {
|
|
url = "https://repo1.maven.org/maven2/servletapi/servletapi/2.3/servletapi-2.3.jar";
|
|
hash = "sha256-hHi5AtCBXtBm24YPsUzF1ARUjUtjSKuTC0YnD83eumg=";
|
|
};
|
|
|
|
patches = [./commons-jelly.patch];
|
|
|
|
nativeBuildInputs = [jdk6 ant_1_7];
|
|
|
|
env = {
|
|
JAVA_HOME="${jdk6}";
|
|
CLASSPATH="${servletApi}:${commons-logging_1_0_3}/commons-logging.jar:${commons-cli-bootstrap}/commons-cli-1.0-beta-2-dev.jar:${dom4j}/dom4j.jar:${commons-collections_2_1}/commons-collections.jar:${commons-beanutils_1_6}/commons-beanutils.jar:${commons-jexl}/commons-jexl-1.0-beta-1.jar:${commons-discovery}/commons-discovery.jar:${jaxen}/jaxen-full.jar:${saxpath}/saxpath.jar:${junit_3_7}/junit.jar";
|
|
};
|
|
|
|
buildPhase = ''
|
|
#ln -s /build/source/LICENSE.txt /build/LICENSE
|
|
ant dist
|
|
'';
|
|
|
|
installPhase = ''
|
|
mkdir $out
|
|
cp -r ./dist/* $out/
|
|
'';
|
|
}
|