Added GeoIP Java API library

svn path=/nixpkgs/trunk/; revision=21626
This commit is contained in:
Sander van der Burg 2010-05-06 13:58:27 +00:00
parent 65c05f03da
commit b97a0eb54e
2 changed files with 30 additions and 0 deletions

View file

@ -0,0 +1,26 @@
{stdenv, fetchurl, jdk, unzip}:
stdenv.mkDerivation {
name = "GeoIPJava-1.2.3";
src = fetchurl {
url = http://geolite.maxmind.com/download/geoip/api/java/GeoIPJava-1.2.3.zip;
sha256 = "0l8vxan2xh0mp1vjxh39q05jyfw8gk5y77b7i8s1aw7ssyzd05vs";
};
buildInputs = [ jdk unzip ];
buildPhase =
''
cd source
javac $(find . -name \*.java)
jar cfv maxmindgeoip.jar $(find . -name \*.class)
'';
installPhase =
''
ensureDir $out/share/java
cp maxmindgeoip.jar $out/share/java
'';
meta = {
description = "GeoIP Java API";
license = "LGPL2.1+";
maintainers = [ stdenv.lib.maintainers.sander ];
};
}

View file

@ -3794,6 +3794,10 @@ let
inherit zlib;
};
geoipjava = import ../development/libraries/java/geoipjava {
inherit stdenv fetchurl jdk unzip;
};
geos = import ../development/libraries/geos {
inherit fetchurl fetchsvn stdenv autoconf
automake libtool swig which lib composableDerivation python ruby;