Added Maven 2.0.3.

svn path=/nixpkgs/trunk/; revision=5131
This commit is contained in:
Roy van den Broek 2006-03-31 12:10:20 +00:00
parent fcbffab371
commit 9bd2e741a9
4 changed files with 35 additions and 0 deletions

View file

@ -0,0 +1,14 @@
source $stdenv/setup
source $makeWrapper
unpackPhase
mkdir -p $out
cp -r $name/* $out
# Make a backup of the original directory
cp -r $out/bin $out/bin-orig
# Remove the original mvn from the bin directory
rm $out/bin/mvn
# Set the JAVA_HOME variable when using `mvn'
makeWrapper "$out/bin-orig/mvn" "$out/bin/mvn" --set JAVA_HOME "$jdk"

View file

@ -0,0 +1,15 @@
{stdenv, fetchurl, jdk}:
assert jdk != null;
stdenv.mkDerivation {
name = "maven-2.0.3";
builder = ./builder.sh;
src = fetchurl {
url = http://apache.cs.uu.nl/dist/maven/binaries/maven-2.0.3-bin.tar.bz2;
md5 = "14b3a62c45f5c7b3a7f72f87ffadb8e0";
};
makeWrapper = ../../build-support/make-wrapper/make-wrapper.sh;
inherit jdk;
}

View file

@ -2408,5 +2408,9 @@ rec {
inherit (xlibs) libX11 libXext;
patchelf = patchelfNew;
};
maven = (import ../misc/maven) {
inherit stdenv fetchurl jdk;
};
}

View file

@ -69,6 +69,7 @@ let {
libxml2
libxslt
lynx
maven
mk
mktemp
mono
@ -159,6 +160,7 @@ let {
libtool
libxml2
libxslt
maven
nxml
subversion
tetex