12fafd0c7d
svn path=/nixpkgs/trunk/; revision=10259
19 lines
480 B
Bash
19 lines
480 B
Bash
buildInputs="$jdk5"
|
|
source $stdenv/setup
|
|
|
|
export JDK_HOME=$jdk5
|
|
export JAVA_HOME=$jdk5
|
|
|
|
tar xfvz $src
|
|
cd jboss-*
|
|
cd build
|
|
sh build.sh
|
|
ensureDir $out
|
|
cp -av output/jboss-*/* $out
|
|
|
|
# Insert JAVA_HOME variable to make sure the latest JRE is used and not version 5
|
|
sed -i -e "/GREP/aJAVA_HOME=$jdk" $out/bin/run.sh
|
|
|
|
# Change the deploy directory to the nix profile
|
|
sed -i -e "s|deploy/|/nix/var/nix/profiles/default/server/default/deploy/|" $out/server/default/conf/jboss-service.xml
|