2024-07-27 06:49:29 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenvNoCC,
|
|
|
|
fetchurl,
|
|
|
|
ant,
|
|
|
|
jdk,
|
|
|
|
stripJavaArchivesHook,
|
|
|
|
unzip,
|
|
|
|
nixosTests,
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "axis2";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "1.8.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2024-07-27 06:49:29 +00:00
|
|
|
url = "mirror://apache/axis/axis2/java/core/${finalAttrs.version}/axis2-${finalAttrs.version}-bin.zip";
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-oilPVFFpl3F61nVDxcYx/bc81FopS5fzoIdXzeP8brk=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
ant
|
|
|
|
jdk
|
|
|
|
stripJavaArchivesHook
|
|
|
|
unzip
|
|
|
|
];
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
runHook preBuild
|
|
|
|
ant -f webapp
|
|
|
|
runHook postBuild
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
install -Dm644 dist/axis2.war -t $out/webapps
|
|
|
|
unzip $out/webapps/axis2.war -d $out/webapps/axis2
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
passthru.tests = {
|
|
|
|
inherit (nixosTests) tomcat;
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Web Services / SOAP / WSDL engine, the successor to the widely used Apache Axis SOAP stack";
|
2024-01-02 11:29:13 +00:00
|
|
|
homepage = "https://axis.apache.org/axis2/java/core/";
|
2024-07-27 06:49:29 +00:00
|
|
|
changelog = "https://axis.apache.org/axis2/java/core/release-notes/${finalAttrs.version}.html";
|
2024-01-02 11:29:13 +00:00
|
|
|
maintainers = [ lib.maintainers.anthonyroussel ];
|
2021-01-15 22:18:51 +00:00
|
|
|
platforms = lib.platforms.unix;
|
2022-06-16 17:23:12 +00:00
|
|
|
sourceProvenance = with lib.sourceTypes; [ binaryBytecode ];
|
2021-01-15 22:18:51 +00:00
|
|
|
license = lib.licenses.asl20;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2024-07-27 06:49:29 +00:00
|
|
|
})
|