mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-29 14:57:28 +03:00
02eaa57b56
svn path=/nixpkgs/branches/stdenv-updates/; revision=32270
27 lines
666 B
Nix
27 lines
666 B
Nix
{stdenv, fetchurl, jdk, unzip}:
|
|
|
|
stdenv.mkDerivation {
|
|
name = "GeoIPJava-1.2.5";
|
|
src = fetchurl {
|
|
url = http://geolite.maxmind.com/download/geoip/api/java/GeoIPJava-1.2.5.zip;
|
|
sha256 = "1gb2d0qvvq7xankz7l7ymbr3qprwk9bifpy4hlgw0sq4i6a55ypd";
|
|
};
|
|
buildInputs = [ jdk unzip ];
|
|
buildPhase =
|
|
''
|
|
cd source
|
|
javac $(find . -name \*.java)
|
|
jar cfv maxmindgeoip.jar $(find . -name \*.class)
|
|
'';
|
|
installPhase =
|
|
''
|
|
mkdir -p $out/share/java
|
|
cp maxmindgeoip.jar $out/share/java
|
|
'';
|
|
meta = {
|
|
description = "GeoIP Java API";
|
|
license = "LGPL2.1+";
|
|
maintainers = [ stdenv.lib.maintainers.sander ];
|
|
};
|
|
}
|