nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenvNoCC,
4 ant,
5 fetchurl,
6 jdk,
7 nixosTests,
8 stripJavaArchivesHook,
9 unzip,
10}:
11
12stdenvNoCC.mkDerivation (finalAttrs: {
13 pname = "axis2";
14 version = "1.8.2";
15
16 src = fetchurl {
17 url = "mirror://apache/axis/axis2/java/core/${finalAttrs.version}/axis2-${finalAttrs.version}-bin.zip";
18 hash = "sha256-oilPVFFpl3F61nVDxcYx/bc81FopS5fzoIdXzeP8brk=";
19 };
20
21 nativeBuildInputs = [
22 ant
23 jdk
24 stripJavaArchivesHook
25 unzip
26 ];
27
28 buildPhase = ''
29 runHook preBuild
30 ant -f webapp
31 runHook postBuild
32 '';
33
34 installPhase = ''
35 runHook preInstall
36
37 install -Dm644 lib/* -t $out/lib
38 install -Dm644 dist/axis2.war -t $out/webapps
39 unzip $out/webapps/axis2.war -d $out/webapps/axis2
40
41 runHook postInstall
42 '';
43
44 passthru.tests = {
45 inherit (nixosTests) tomcat;
46 };
47
48 meta = {
49 description = "Web Services / SOAP / WSDL engine, the successor to the widely used Apache Axis SOAP stack";
50 homepage = "https://axis.apache.org/axis2/java/core/";
51 changelog = "https://axis.apache.org/axis2/java/core/release-notes/${finalAttrs.version}.html";
52 maintainers = [ lib.maintainers.anthonyroussel ];
53 platforms = lib.platforms.unix;
54 sourceProvenance = with lib.sourceTypes; [ binaryBytecode ];
55 license = lib.licenses.asl20;
56 };
57})