DisnixWebService: fix build for Axis2 1.8.1

See upstream fix: https://github.com/svanderburg/DisnixWebService/pull/2
This commit is contained in:
Anthony Roussel
2023-11-23 00:13:26 +01:00
parent 20a73f36fa
commit 05d8b88821
@@ -1,12 +1,25 @@
{lib, stdenv, fetchurl, apacheAnt, jdk, axis2, dbus_java }:
{lib, stdenv, fetchFromGitHub, fetchpatch, apacheAnt, jdk, axis2, dbus_java }:
stdenv.mkDerivation rec {
pname = "DisnixWebService";
version = "0.10.1";
src = fetchurl {
url = "https://github.com/svanderburg/DisnixWebService/releases/download/DisnixWebService-${version}/DisnixWebService-${version}.tar.gz";
sha256 = "02jxbgn9a0c9cr6knzp78bp9wiywzczy89wav7yxhg79vff8a1gr";
src = fetchFromGitHub {
owner = "svanderburg";
repo = "DisnixWebService";
rev = "refs/tags/DisnixWebService-${version}";
hash = "sha256-zcYr2Ytx4pevSthTQLpnQ330wDxN9dWsZA20jbO6PxQ=";
};
patches = [
# Correct the DisnixWebService build for compatibility with Axis2 1.8.1
# See https://github.com/svanderburg/DisnixWebService/pull/2
(fetchpatch {
url = "https://github.com/svanderburg/DisnixWebService/commit/cee99c6af744b5dda16728a70ebd2800f61871a0.patch";
hash = "sha256-4rSEN8AwivUXUCIUYFBRIoE19jVDv+Vpgakmy8fR06A=";
})
];
buildInputs = [ apacheAnt jdk ];
PREFIX = "\${env.out}";
AXIS2_LIB = "${axis2}/lib";