diff options
Diffstat (limited to 'nixpkgs/pkgs/servers/http/tomcat/axis2')
-rw-r--r-- | nixpkgs/pkgs/servers/http/tomcat/axis2/builder.sh | 16 | ||||
-rw-r--r-- | nixpkgs/pkgs/servers/http/tomcat/axis2/default.nix | 25 |
2 files changed, 41 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..de8e225456b4 --- /dev/null +++ b/nixpkgs/pkgs/servers/http/tomcat/axis2/builder.sh @@ -0,0 +1,16 @@ +if [ -e "$NIX_ATTRS_SH_FILE" ]; then . "$NIX_ATTRS_SH_FILE"; elif [ -f .attrs.sh ]; then . .attrs.sh; fi +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..5cee9020b8aa --- /dev/null +++ b/nixpkgs/pkgs/servers/http/tomcat/axis2/default.nix @@ -0,0 +1,25 @@ +{ lib, stdenv, fetchurl, apacheAnt, jdk, unzip }: + +stdenv.mkDerivation rec { + pname = "axis2"; + version = "1.8.2"; + + src = fetchurl { + url = "mirror://apache/axis/axis2/java/core/${version}/${pname}-${version}-bin.zip"; + hash = "sha256-oilPVFFpl3F61nVDxcYx/bc81FopS5fzoIdXzeP8brk="; + }; + + nativeBuildInputs = [ unzip ]; + buildInputs = [ apacheAnt jdk ]; + builder = ./builder.sh; + + meta = { + description = "Web Services / SOAP / WSDL engine, the successor to the widely used Apache Axis SOAP stack"; + homepage = "https://axis.apache.org/axis2/java/core/"; + changelog = "https://axis.apache.org/axis2/java/core/release-notes/${version}.html"; + maintainers = [ lib.maintainers.anthonyroussel ]; + platforms = lib.platforms.unix; + sourceProvenance = with lib.sourceTypes; [ binaryBytecode ]; + license = lib.licenses.asl20; + }; +} |