21f17d69f6
Build-tested on x86_64 Linux & Mac.
28 lines
906 B
Nix
28 lines
906 B
Nix
{stdenv, fetchurl, apacheAnt, jdk, axis2, dbus_java}:
|
|
|
|
stdenv.mkDerivation {
|
|
name = "DisnixWebService-0.6";
|
|
src = fetchurl {
|
|
url = http://hydra.nixos.org/build/36899117/download/4/DisnixWebService-0.6.tar.bz2;
|
|
sha256 = "0yvwjnzk1q4y3wj8pi6z3i7akw83ah9xm2v93ni1ri70z5930mdz";
|
|
};
|
|
buildInputs = [ apacheAnt jdk ];
|
|
PREFIX = ''''${env.out}'';
|
|
AXIS2_LIB = "${axis2}/lib";
|
|
AXIS2_WEBAPP = "${axis2}/webapps/axis2";
|
|
DBUS_JAVA_LIB = "${dbus_java}/share/java";
|
|
patchPhase = ''
|
|
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 = stdenv.lib.licenses.mit;
|
|
maintainers = [ stdenv.lib.maintainers.sander ];
|
|
platforms = stdenv.lib.platforms.linux;
|
|
};
|
|
}
|