1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs synced 2024-10-19 03:47:13 -04:00
nixpkgs/pkgs/misc/maven/builder.sh
Roy van den Broek 9bd2e741a9 Added Maven 2.0.3.
svn path=/nixpkgs/trunk/; revision=5131
2006-03-31 12:10:20 +00:00

15 lines
342 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/mvn
# Set the JAVA_HOME variable when using `mvn'
makeWrapper "$out/bin-orig/mvn" "$out/bin/mvn" --set JAVA_HOME "$jdk"