Added GeoIP Java API library
svn path=/nixpkgs/trunk/; revision=21626
This commit is contained in:
parent
65c05f03da
commit
b97a0eb54e
26
pkgs/development/libraries/java/geoipjava/default.nix
Normal file
26
pkgs/development/libraries/java/geoipjava/default.nix
Normal 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 ];
|
||||||
|
};
|
||||||
|
}
|
@ -3794,6 +3794,10 @@ let
|
|||||||
inherit zlib;
|
inherit zlib;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
geoipjava = import ../development/libraries/java/geoipjava {
|
||||||
|
inherit stdenv fetchurl jdk unzip;
|
||||||
|
};
|
||||||
|
|
||||||
geos = import ../development/libraries/geos {
|
geos = import ../development/libraries/geos {
|
||||||
inherit fetchurl fetchsvn stdenv autoconf
|
inherit fetchurl fetchsvn stdenv autoconf
|
||||||
automake libtool swig which lib composableDerivation python ruby;
|
automake libtool swig which lib composableDerivation python ruby;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user