mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-10-31 22:51:22 +00:00
Added Maven 2.0.3.
svn path=/nixpkgs/trunk/; revision=5131
This commit is contained in:
parent
fcbffab371
commit
9bd2e741a9
14
pkgs/misc/maven/builder.sh
Normal file
14
pkgs/misc/maven/builder.sh
Normal 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"
|
15
pkgs/misc/maven/default.nix
Normal file
15
pkgs/misc/maven/default.nix
Normal 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;
|
||||
}
|
@ -2408,5 +2408,9 @@ rec {
|
||||
inherit (xlibs) libX11 libXext;
|
||||
patchelf = patchelfNew;
|
||||
};
|
||||
|
||||
maven = (import ../misc/maven) {
|
||||
inherit stdenv fetchurl jdk;
|
||||
};
|
||||
|
||||
}
|
||||
|
@ -69,6 +69,7 @@ let {
|
||||
libxml2
|
||||
libxslt
|
||||
lynx
|
||||
maven
|
||||
mk
|
||||
mktemp
|
||||
mono
|
||||
@ -159,6 +160,7 @@ let {
|
||||
libtool
|
||||
libxml2
|
||||
libxslt
|
||||
maven
|
||||
nxml
|
||||
subversion
|
||||
tetex
|
||||
|
Loading…
Reference in New Issue
Block a user