mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
9bd2e741a9
svn path=/nixpkgs/trunk/; revision=5131
14 lines
342 B
Bash
14 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"
|