mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-24 20:02:58 +03:00
Added Maven 1.0.2.
svn path=/nixpkgs/trunk/; revision=5132
This commit is contained in:
parent
9bd2e741a9
commit
de468583ce
@ -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"
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
16
pkgs/misc/maven/maven-1.0.nix
Normal file
16
pkgs/misc/maven/maven-1.0.nix
Normal 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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user