update maven2

svn path=/nixpkgs/trunk/; revision=18609
This commit is contained in:
Rob Vermaas 2009-11-25 07:51:06 +00:00
parent f52952e504
commit 2ffa48af25
4 changed files with 8 additions and 40 deletions

View File

@ -1,17 +1,11 @@
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/$mavenBinary
# Set the JAVA_HOME variable when using Maven
makeWrapper "$out/bin-orig/$mavenBinary" "$out/bin/$mavenBinary" --set JAVA_HOME "$jdk"
wrapProgram $out/bin/mvn --set JAVA_HOME "$jdk"
# Add the maven-axis and JIRA plugin by default when using maven 1.x
if [ -e $out/bin/maven ]

View File

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

View File

@ -1,23 +0,0 @@
args: with args;
stdenv.mkDerivation {
name = "maven-2.1.0-bin";
src = fetchurl {
# TODO mirrors
url = http://apache.mirroring.de/maven/binaries/apache-maven-2.1.0-bin.zip;
sha256 = "13xda2l05pqs7x8ig85i9dqbdbv970zfgqif4wgjz8nn36jbxpvd";
};
buildInputs = [ unzip ];
phases = "unpackPhase installPhase";
installPhase = "
ensureDir \$out; mv * \$out
";
meta = {
description = "Java build tool";
homepage = "apache.org";
};
}

View File

@ -8294,10 +8294,8 @@ let
inherit stdenv fetchurl jdk;
};
# don't have time for the source build right now
# maven2
mvn_bin = import ../misc/maven/maven-2.nix {
inherit fetchurl stdenv unzip;
maven2 = import ../misc/maven {
inherit stdenv fetchurl jdk makeWrapper;
};
nix = makeOverridable (import ../tools/package-management/nix) {