2015-03-31 15:54:06 +02:00
|
|
|
{ stdenv, fetchurl }:
|
|
|
|
|
2015-04-16 04:42:31 +02:00
|
|
|
let
|
2015-07-23 04:05:00 +02:00
|
|
|
fetchDB = src: name: sha256: fetchurl {
|
|
|
|
inherit name sha256;
|
|
|
|
url = "https://geolite.maxmind.com/download/geoip/database/${src}";
|
2015-04-16 04:42:31 +02:00
|
|
|
};
|
|
|
|
in
|
2016-01-25 20:08:34 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2015-03-31 15:54:06 +02:00
|
|
|
name = "geolite-legacy-${version}";
|
2016-04-29 15:37:04 +02:00
|
|
|
version = "2016-04-29";
|
2015-03-31 15:54:06 +02:00
|
|
|
|
2015-07-23 04:05:00 +02:00
|
|
|
srcGeoIP = fetchDB
|
|
|
|
"GeoLiteCountry/GeoIP.dat.gz" "GeoIP.dat.gz"
|
2016-04-19 12:28:32 +02:00
|
|
|
"0g34nwilhim73f0qp0yq3lfx54c42wy70ra4dkmwlfddyq3ln0xd";
|
2015-07-23 04:05:00 +02:00
|
|
|
srcGeoIPv6 = fetchDB
|
|
|
|
"GeoIPv6.dat.gz" "GeoIPv6.dat.gz"
|
2016-04-19 12:28:32 +02:00
|
|
|
"12k4nmfblm9c7kj4v7cyl6sgfgdfv2jdx4fl7nxfzpk1km7yc5na";
|
2015-07-23 04:05:00 +02:00
|
|
|
srcGeoLiteCity = fetchDB
|
|
|
|
"GeoLiteCity.dat.xz" "GeoIPCity.dat.xz"
|
2016-04-28 23:48:36 +02:00
|
|
|
"190c5bq63rzkvvfrgiwgd5j0rk9qdq6vx16w28kraq8pwz0dcb2f";
|
2015-07-23 04:05:00 +02:00
|
|
|
srcGeoLiteCityv6 = fetchDB
|
|
|
|
"GeoLiteCityv6-beta/GeoLiteCityv6.dat.gz" "GeoIPCityv6.dat.gz"
|
2016-04-29 15:37:04 +02:00
|
|
|
"1sr2yapsfmdpl4zpf8i5rl3k65dgbq7bb1615g6wf60yw9ngh76x";
|
2015-07-23 04:05:00 +02:00
|
|
|
srcGeoIPASNum = fetchDB
|
|
|
|
"asnum/GeoIPASNum.dat.gz" "GeoIPASNum.dat.gz"
|
2016-04-25 13:32:04 +02:00
|
|
|
"1b7w8sdazxq5sv3nz1s28420374vf4wn6h2zasbg68kc2cxwdh2w";
|
2015-07-23 04:05:00 +02:00
|
|
|
srcGeoIPASNumv6 = fetchDB
|
|
|
|
"asnum/GeoIPASNumv6.dat.gz" "GeoIPASNumv6.dat.gz"
|
2016-04-25 13:32:04 +02:00
|
|
|
"1iy6myanmx8h4ha493bz80q6wjwgjlbk7cmliyw1806dd7fhqvwi";
|
2015-03-31 15:54:06 +02:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "GeoLite Legacy IP geolocation databases";
|
|
|
|
homepage = https://geolite.maxmind.com/download/geoip;
|
2015-05-28 19:20:29 +02:00
|
|
|
license = licenses.cc-by-sa-30;
|
2015-08-06 00:30:09 +02:00
|
|
|
platforms = platforms.all;
|
2015-03-31 15:54:06 +02:00
|
|
|
maintainers = with maintainers; [ nckx ];
|
|
|
|
};
|
|
|
|
|
|
|
|
builder = ./builder.sh;
|
|
|
|
}
|