Added Maven 1.0.2.

svn path=/nixpkgs/trunk/; revision=5132
This commit is contained in:
Roy van den Broek 2006-03-31 12:44:06 +00:00
parent 9bd2e741a9
commit de468583ce
3 changed files with 21 additions and 4 deletions

View File

@ -9,6 +9,6 @@ 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"
rm $out/bin/$mavenBinary
# Set the JAVA_HOME variable when using Maven
makeWrapper "$out/bin-orig/$mavenBinary" "$out/bin/$mavenBinary" --set JAVA_HOME "$jdk"

View File

@ -4,6 +4,7 @@ assert jdk != null;
stdenv.mkDerivation {
name = "maven-2.0.3";
mavenBinary = "mvn";
builder = ./builder.sh;
src = fetchurl {
url = http://apache.cs.uu.nl/dist/maven/binaries/maven-2.0.3-bin.tar.bz2;
@ -12,4 +13,4 @@ stdenv.mkDerivation {
makeWrapper = ../../build-support/make-wrapper/make-wrapper.sh;
inherit jdk;
}
}

View File

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