Cleaned the expression of tomcat a bit

svn path=/nixpkgs/trunk/; revision=17777
This commit is contained in:
Sander van der Burg 2009-10-13 13:21:51 +00:00
parent 37a65be4ff
commit 223789d411
2 changed files with 6 additions and 8 deletions

View File

@ -1,14 +1,14 @@
buildInputs="$unzip $apacheAnt $jdk"
source $stdenv/setup source $stdenv/setup
unzip $src unzip $src
cd axis2-* cd axis2-*
ensureDir $out/share/java/axis2 ensureDir $out
cp lib/* $out/share/java/axis2 cp -av * $out
cd webapp cd webapp
ant ant
cd ..
ensureDir $out/webapps ensureDir $out/webapps
cp ../dist/axis2.war $out/webapps cp dist/axis2.war $out/webapps
cd $out/webapps cd $out/webapps
mkdir axis2 mkdir axis2
cd axis2 cd axis2

View File

@ -1,15 +1,13 @@
{stdenv, fetchurl, apacheAnt, jdk, unzip}: {stdenv, fetchurl, apacheAnt, jdk, unzip}:
stdenv.mkDerivation { stdenv.mkDerivation {
name = "axis2-1.5"; name = "axis2-1.5";
builder = ./builder.sh;
src = fetchurl { src = fetchurl {
url = http://apache.mirror.easycolocate.nl/ws/axis2/1_5/axis2-1.5-bin.zip; url = http://apache.mirror.easycolocate.nl/ws/axis2/1_5/axis2-1.5-bin.zip;
sha256 = "0f0a471xfsjx7s3i9awhajl1kli8y8pd8aiki7cwb9n4g467rwmc"; sha256 = "0f0a471xfsjx7s3i9awhajl1kli8y8pd8aiki7cwb9n4g467rwmc";
}; };
inherit apacheAnt jdk unzip; buildInputs = [ unzip apacheAnt jdk ];
builder = ./builder.sh;
} }