cd2df27b1c
svn path=/nixpkgs/trunk/; revision=25899
22 lines
685 B
Nix
22 lines
685 B
Nix
{stdenv, fetchurl, apacheAnt, jdk, axis2, dbus_java}:
|
|
|
|
stdenv.mkDerivation {
|
|
name = "DisnixWebService-0.2";
|
|
src = fetchurl {
|
|
url = http://hydra.nixos.org/build/895081/download/4/DisnixWebService-0.2.tar.bz2;
|
|
sha256 = "1kxb5r52b0dd4z5v56j64iqvpcsxzw37ib7cp5fknj40qphay8wl";
|
|
};
|
|
buildInputs = [ apacheAnt ];
|
|
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";
|
|
}
|