2015-03-31 15:54:06 +02:00
|
|
|
{ stdenv, fetchurl }:
|
|
|
|
|
2015-04-16 04:42:31 +02:00
|
|
|
let
|
2017-09-18 21:54:00 +02:00
|
|
|
fetchDB = src: sha256: fetchurl {
|
|
|
|
inherit sha256;
|
2015-07-23 04:05:00 +02:00
|
|
|
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 {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "geolite-legacy";
|
2017-12-04 07:23:47 +01:00
|
|
|
version = "2017-12-02";
|
2015-03-31 15:54:06 +02:00
|
|
|
|
2015-07-23 04:05:00 +02:00
|
|
|
srcGeoIP = fetchDB
|
2017-09-18 21:54:00 +02:00
|
|
|
"GeoLiteCountry/GeoIP.dat.gz"
|
2017-12-04 07:23:47 +01:00
|
|
|
"1nggml11wzlanmzk6wbw2kla91fj8ggd9kh9yz42lnyckdlf5ac4";
|
2015-07-23 04:05:00 +02:00
|
|
|
srcGeoIPv6 = fetchDB
|
2017-09-18 21:54:00 +02:00
|
|
|
"GeoIPv6.dat.gz"
|
2017-12-04 07:23:47 +01:00
|
|
|
"0w809xgmr5zi4fgm9q3lhrnh1vl62s49n737bhq4jplm5918ki50";
|
2015-07-23 04:05:00 +02:00
|
|
|
srcGeoLiteCity = fetchDB
|
2017-09-18 21:54:00 +02:00
|
|
|
"GeoLiteCity.dat.gz"
|
2017-12-04 07:23:47 +01:00
|
|
|
"0cibajsv5xdjpw1qfx22izm5azqcj0d7nvk39irgwflkim9jfjbs";
|
2015-07-23 04:05:00 +02:00
|
|
|
srcGeoLiteCityv6 = fetchDB
|
2017-09-18 21:54:00 +02:00
|
|
|
"GeoLiteCityv6-beta/GeoLiteCityv6.dat.gz"
|
2017-12-04 07:23:47 +01:00
|
|
|
"1ldwbzgs64irfgb3kq3jp8fmhwmwqk713dr4kkdqlglrblr9hfkc";
|
2015-07-23 04:05:00 +02:00
|
|
|
srcGeoIPASNum = fetchDB
|
2017-09-18 21:54:00 +02:00
|
|
|
"asnum/GeoIPASNum.dat.gz"
|
2017-12-04 07:23:47 +01:00
|
|
|
"06qqs8qr8vxqwd80npz7n66k3bpc1vs7w43i2bb4k0di5yxnjwr9";
|
2015-07-23 04:05:00 +02:00
|
|
|
srcGeoIPASNumv6 = fetchDB
|
2017-09-18 21:54:00 +02:00
|
|
|
"asnum/GeoIPASNumv6.dat.gz"
|
2017-12-04 07:23:47 +01:00
|
|
|
"1qyq4h8cja62giv6q1qqc502vsq53wzz1kx80mgvwngmycrxa21k";
|
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;
|
2018-01-16 22:59:13 +01:00
|
|
|
maintainers = with maintainers; [ fpletz ];
|
2015-03-31 15:54:06 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
builder = ./builder.sh;
|
|
|
|
}
|