Added GeoIP Java API library

svn path=/nixpkgs/trunk/; revision=21626

+30
+26
pkgs/development/libraries/java/geoipjava/default.nix
···
··· 1 + {stdenv, fetchurl, jdk, unzip}: 2 + 3 + stdenv.mkDerivation { 4 + name = "GeoIPJava-1.2.3"; 5 + src = fetchurl { 6 + url = http://geolite.maxmind.com/download/geoip/api/java/GeoIPJava-1.2.3.zip; 7 + sha256 = "0l8vxan2xh0mp1vjxh39q05jyfw8gk5y77b7i8s1aw7ssyzd05vs"; 8 + }; 9 + buildInputs = [ jdk unzip ]; 10 + buildPhase = 11 + '' 12 + cd source 13 + javac $(find . -name \*.java) 14 + jar cfv maxmindgeoip.jar $(find . -name \*.class) 15 + ''; 16 + installPhase = 17 + '' 18 + ensureDir $out/share/java 19 + cp maxmindgeoip.jar $out/share/java 20 + ''; 21 + meta = { 22 + description = "GeoIP Java API"; 23 + license = "LGPL2.1+"; 24 + maintainers = [ stdenv.lib.maintainers.sander ]; 25 + }; 26 + }
+4
pkgs/top-level/all-packages.nix
··· 3794 inherit zlib; 3795 }; 3796 3797 geos = import ../development/libraries/geos { 3798 inherit fetchurl fetchsvn stdenv autoconf 3799 automake libtool swig which lib composableDerivation python ruby;
··· 3794 inherit zlib; 3795 }; 3796 3797 + geoipjava = import ../development/libraries/java/geoipjava { 3798 + inherit stdenv fetchurl jdk unzip; 3799 + }; 3800 + 3801 geos = import ../development/libraries/geos { 3802 inherit fetchurl fetchsvn stdenv autoconf 3803 automake libtool swig which lib composableDerivation python ruby;