2015-03-31 14:54:06 +01:00
|
|
|
{ stdenv, fetchurl }:
|
|
|
|
|
2015-04-16 03:42:31 +01:00
|
|
|
let
|
2017-09-18 20:54:00 +01:00
|
|
|
fetchDB = src: sha256: fetchurl {
|
|
|
|
inherit sha256;
|
2015-07-23 03:05:00 +01:00
|
|
|
url = "https://geolite.maxmind.com/download/geoip/database/${src}";
|
2015-04-16 03:42:31 +01:00
|
|
|
};
|
|
|
|
in
|
2016-01-25 19:08:34 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2015-03-31 14:54:06 +01:00
|
|
|
name = "geolite-legacy-${version}";
|
2017-09-18 20:54:00 +01:00
|
|
|
version = "2017-09-17";
|
2015-03-31 14:54:06 +01:00
|
|
|
|
2015-07-23 03:05:00 +01:00
|
|
|
srcGeoIP = fetchDB
|
2017-09-18 20:54:00 +01:00
|
|
|
"GeoLiteCountry/GeoIP.dat.gz"
|
2017-05-26 00:43:57 +01:00
|
|
|
"04akk0jczvki8rdvz6z6v5s26ds0m27953lzvp3v0fsg7rl08q5n";
|
2015-07-23 03:05:00 +01:00
|
|
|
srcGeoIPv6 = fetchDB
|
2017-09-18 20:54:00 +01:00
|
|
|
"GeoIPv6.dat.gz"
|
2017-05-26 00:43:57 +01:00
|
|
|
"0i0885vvj0s5sysyafvk8pc8gr3znh7gmiy8rp4iiai7qnbylb7y";
|
2015-07-23 03:05:00 +01:00
|
|
|
srcGeoLiteCity = fetchDB
|
2017-09-18 20:54:00 +01:00
|
|
|
"GeoLiteCity.dat.gz"
|
|
|
|
"1yqxqfndnsvqc3hrs0nm6nvs0wp8jh9phs0yzrn48rlb9agcb8gj";
|
2015-07-23 03:05:00 +01:00
|
|
|
srcGeoLiteCityv6 = fetchDB
|
2017-09-18 20:54:00 +01:00
|
|
|
"GeoLiteCityv6-beta/GeoLiteCityv6.dat.gz"
|
|
|
|
"05grm006r723l9zm7pdmwwycc658ni858hcrcf5mysv0hmc3wqb2";
|
2015-07-23 03:05:00 +01:00
|
|
|
srcGeoIPASNum = fetchDB
|
2017-09-18 20:54:00 +01:00
|
|
|
"asnum/GeoIPASNum.dat.gz"
|
2017-05-26 00:43:57 +01:00
|
|
|
"1gpvsqvq9z9pg9zfn86i50fb481llfyn79r1jwddwfflp1qqfrrv";
|
2015-07-23 03:05:00 +01:00
|
|
|
srcGeoIPASNumv6 = fetchDB
|
2017-09-18 20:54:00 +01:00
|
|
|
"asnum/GeoIPASNumv6.dat.gz"
|
2017-05-26 00:43:57 +01:00
|
|
|
"0nmhz82dn9clm5w2y6z861ifj7i761spy1p1zcam93046cdpqqaa";
|
2015-03-31 14:54:06 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "GeoLite Legacy IP geolocation databases";
|
|
|
|
homepage = https://geolite.maxmind.com/download/geoip;
|
2015-05-28 18:20:29 +01:00
|
|
|
license = licenses.cc-by-sa-30;
|
2015-08-05 23:30:09 +01:00
|
|
|
platforms = platforms.all;
|
2017-09-18 20:54:00 +01:00
|
|
|
maintainers = with maintainers; [ nckx fpletz ];
|
2015-03-31 14:54:06 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
builder = ./builder.sh;
|
|
|
|
}
|