nixpkgs/pkgs/misc/maven/builder.sh
Roy van den Broek de468583ce Added Maven 1.0.2.
svn path=/nixpkgs/trunk/; revision=5132
2006-03-31 12:44:06 +00:00

15 lines
369 B
Bash

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"