about summary refs log tree commit diff
path: root/nixpkgs/pkgs/servers/http/tomcat/axis2
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/servers/http/tomcat/axis2')
-rw-r--r--nixpkgs/pkgs/servers/http/tomcat/axis2/builder.sh15
-rw-r--r--nixpkgs/pkgs/servers/http/tomcat/axis2/default.nix20
2 files changed, 35 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/servers/http/tomcat/axis2/builder.sh b/nixpkgs/pkgs/servers/http/tomcat/axis2/builder.sh
new file mode 100644
index 000000000000..2e36367e9dcf
--- /dev/null
+++ b/nixpkgs/pkgs/servers/http/tomcat/axis2/builder.sh
@@ -0,0 +1,15 @@
+source $stdenv/setup
+
+unzip $src
+cd axis2-*
+mkdir -p $out
+cp -av * $out
+cd webapp
+ant
+cd ..
+mkdir -p $out/webapps
+cp dist/axis2.war $out/webapps
+cd $out/webapps
+mkdir axis2
+cd axis2
+unzip ../axis2.war
diff --git a/nixpkgs/pkgs/servers/http/tomcat/axis2/default.nix b/nixpkgs/pkgs/servers/http/tomcat/axis2/default.nix
new file mode 100644
index 000000000000..7f14f6fff195
--- /dev/null
+++ b/nixpkgs/pkgs/servers/http/tomcat/axis2/default.nix
@@ -0,0 +1,20 @@
+{ stdenv, fetchurl, apacheAnt, jdk, unzip }:
+
+stdenv.mkDerivation rec {
+  name = "axis2-${version}";
+  version = "1.6.4";
+
+  src = fetchurl {
+    url = "http://apache.proserve.nl/axis/axis2/java/core/${version}/${name}-bin.zip";
+    sha256 = "12ir706dn95567j6lkxdwrh28vnp6292h59qwjyqjm7ckglkmgyr";
+  };
+
+  buildInputs = [ unzip apacheAnt jdk ];
+  builder = ./builder.sh;
+
+  meta = {
+    description = "Web Services / SOAP / WSDL engine, the successor to the widely used Apache Axis SOAP stack";
+    platforms = stdenv.lib.platforms.unix;
+    license = stdenv.lib.licenses.asl20;
+  };
+}