From 4987da9c2bc6196e4b8398d6b3e7202f45f86d42 Mon Sep 17 00:00:00 2001 From: Sander van der Burg Date: Sun, 6 Jul 2008 21:38:34 +0000 Subject: [PATCH] Added Disnix SOAP service svn path=/nixpkgs/trunk/; revision=12291 --- .../disnix/DisnixService/builder.sh | 19 +++++++++++++++++++ .../disnix/DisnixService/default.nix | 18 ++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 pkgs/tools/package-management/disnix/DisnixService/builder.sh create mode 100644 pkgs/tools/package-management/disnix/DisnixService/default.nix diff --git a/pkgs/tools/package-management/disnix/DisnixService/builder.sh b/pkgs/tools/package-management/disnix/DisnixService/builder.sh new file mode 100644 index 00000000000..44b6405dca4 --- /dev/null +++ b/pkgs/tools/package-management/disnix/DisnixService/builder.sh @@ -0,0 +1,19 @@ +source $stdenv/setup + +cp -av $src/* . +find . -type f | while read i +do + chmod 644 "$i" +done +find . -type d | while read i +do + chmod 755 "$i" +done +export AXIS2_LIB=$axis2/share/java/axis2 +ant generate.library.jar +ant generate.service.aar +ensureDir $out/shared/lib +cp *.jar *.so $out/shared/lib +chmod 755 $out/shared/lib/*.so +ensureDir $out/webapps/axis2/WEB-INF/services +cp DisnixService.aar $out/webapps/axis2/WEB-INF/services diff --git a/pkgs/tools/package-management/disnix/DisnixService/default.nix b/pkgs/tools/package-management/disnix/DisnixService/default.nix new file mode 100644 index 00000000000..36c635eaee8 --- /dev/null +++ b/pkgs/tools/package-management/disnix/DisnixService/default.nix @@ -0,0 +1,18 @@ +{stdenv, fetchsvn, jdk, apacheAnt, axis2}: + +stdenv.mkDerivation { + name = "DisnixService-0.1"; + src = fetchsvn { + url = https://svn.nixos.org/repos/nix/disnix/DisnixService/trunk; + md5 = "946fe0a6a5aa1add8e71c1f1b04c6a6b"; + rev = 12289; + }; + + buildInputs = [ jdk apacheAnt axis2 ]; + builder = ./builder.sh; + inherit axis2; + + meta = { + license = "LGPL"; + }; +} \ No newline at end of file