1 { lib, stdenv, fetchFromGitHub, fetchpatch, ant, jdk, xmlstarlet, axis2, dbus_java }:
3 stdenv.mkDerivation (finalAttrs: {
4 pname = "DisnixWebService";
7 src = fetchFromGitHub {
9 repo = "DisnixWebService";
10 rev = "DisnixWebService-${finalAttrs.version}";
11 hash = "sha256-zcYr2Ytx4pevSthTQLpnQ330wDxN9dWsZA20jbO6PxQ=";
15 # Correct the DisnixWebService build for compatibility with Axis2 1.8.1
16 # See https://github.com/svanderburg/DisnixWebService/pull/2
18 url = "https://github.com/svanderburg/DisnixWebService/commit/cee99c6af744b5dda16728a70ebd2800f61871a0.patch";
19 hash = "sha256-4rSEN8AwivUXUCIUYFBRIoE19jVDv+Vpgakmy8fR06A=";
30 PREFIX = "\${env.out}";
31 AXIS2_LIB = "${axis2}/lib";
32 AXIS2_WEBAPP = "${axis2}/webapps/axis2";
33 DBUS_JAVA_LIB = "${dbus_java}/share/java";
37 # add modificationtime="0" to the <jar> and <war> tasks to achieve reproducibility
38 xmlstarlet ed -L -a "//jar|//war" -t attr -n "modificationtime" -v "0" build.xml
40 sed -i -e "s|#JAVA_HOME=|JAVA_HOME=${jdk}|" \
41 -e "s|#AXIS2_LIB=|AXIS2_LIB=${axis2}/lib|" \
42 scripts/disnix-soap-client
58 description = "SOAP interface and client for Disnix";
59 mainProgram = "disnix-soap-client";
60 homepage = "https://github.com/svanderburg/DisnixWebService";
61 changelog = "https://github.com/svanderburg/DisnixWebService/blob/${finalAttrs.src.rev}/NEWS.txt";
62 license = lib.licenses.mit;
63 maintainers = [ lib.maintainers.sander ];
64 platforms = lib.platforms.linux;