forked from mirrors/nixpkgs
30 lines
960 B
Nix
30 lines
960 B
Nix
{lib, stdenv, fetchurl, 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";
|
|
};
|
|
buildInputs = [ apacheAnt jdk ];
|
|
PREFIX = "\${env.out}";
|
|
AXIS2_LIB = "${axis2}/lib";
|
|
AXIS2_WEBAPP = "${axis2}/webapps/axis2";
|
|
DBUS_JAVA_LIB = "${dbus_java}/share/java";
|
|
prePatch = ''
|
|
sed -i -e "s|#JAVA_HOME=|JAVA_HOME=${jdk}|" \
|
|
-e "s|#AXIS2_LIB=|AXIS2_LIB=${axis2}/lib|" \
|
|
scripts/disnix-soap-client
|
|
'';
|
|
buildPhase = "ant";
|
|
installPhase = "ant install";
|
|
|
|
meta = {
|
|
description = "A SOAP interface and client for Disnix";
|
|
license = lib.licenses.mit;
|
|
maintainers = [ lib.maintainers.sander ];
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
}
|