2015-03-31 13:54:06 +00:00
|
|
|
{ stdenv, fetchurl }:
|
|
|
|
|
2015-04-16 02:42:31 +00:00
|
|
|
let
|
2017-09-18 19:54:00 +00:00
|
|
|
fetchDB = src: sha256: fetchurl {
|
|
|
|
inherit sha256;
|
2015-07-23 02:05:00 +00:00
|
|
|
url = "https://geolite.maxmind.com/download/geoip/database/${src}";
|
2015-04-16 02:42:31 +00:00
|
|
|
};
|
|
|
|
in
|
2019-08-13 21:52:01 +00:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "geolite-legacy";
|
2017-12-04 06:23:47 +00:00
|
|
|
version = "2017-12-02";
|
2015-03-31 13:54:06 +00:00
|
|
|
|
2015-07-23 02:05:00 +00:00
|
|
|
srcGeoIP = fetchDB
|
2017-09-18 19:54:00 +00:00
|
|
|
"GeoLiteCountry/GeoIP.dat.gz"
|
2017-12-04 06:23:47 +00:00
|
|
|
"1nggml11wzlanmzk6wbw2kla91fj8ggd9kh9yz42lnyckdlf5ac4";
|
2015-07-23 02:05:00 +00:00
|
|
|
srcGeoIPv6 = fetchDB
|
2017-09-18 19:54:00 +00:00
|
|
|
"GeoIPv6.dat.gz"
|
2017-12-04 06:23:47 +00:00
|
|
|
"0w809xgmr5zi4fgm9q3lhrnh1vl62s49n737bhq4jplm5918ki50";
|
2015-07-23 02:05:00 +00:00
|
|
|
srcGeoLiteCity = fetchDB
|
2017-09-18 19:54:00 +00:00
|
|
|
"GeoLiteCity.dat.gz"
|
2017-12-04 06:23:47 +00:00
|
|
|
"0cibajsv5xdjpw1qfx22izm5azqcj0d7nvk39irgwflkim9jfjbs";
|
2015-07-23 02:05:00 +00:00
|
|
|
srcGeoLiteCityv6 = fetchDB
|
2017-09-18 19:54:00 +00:00
|
|
|
"GeoLiteCityv6-beta/GeoLiteCityv6.dat.gz"
|
2017-12-04 06:23:47 +00:00
|
|
|
"1ldwbzgs64irfgb3kq3jp8fmhwmwqk713dr4kkdqlglrblr9hfkc";
|
2015-07-23 02:05:00 +00:00
|
|
|
srcGeoIPASNum = fetchDB
|
2017-09-18 19:54:00 +00:00
|
|
|
"asnum/GeoIPASNum.dat.gz"
|
2017-12-04 06:23:47 +00:00
|
|
|
"06qqs8qr8vxqwd80npz7n66k3bpc1vs7w43i2bb4k0di5yxnjwr9";
|
2015-07-23 02:05:00 +00:00
|
|
|
srcGeoIPASNumv6 = fetchDB
|
2017-09-18 19:54:00 +00:00
|
|
|
"asnum/GeoIPASNumv6.dat.gz"
|
2017-12-04 06:23:47 +00:00
|
|
|
"1qyq4h8cja62giv6q1qqc502vsq53wzz1kx80mgvwngmycrxa21k";
|
2015-03-31 13:54:06 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "GeoLite Legacy IP geolocation databases";
|
|
|
|
homepage = https://geolite.maxmind.com/download/geoip;
|
2015-05-28 17:20:29 +00:00
|
|
|
license = licenses.cc-by-sa-30;
|
2015-08-05 22:30:09 +00:00
|
|
|
platforms = platforms.all;
|
2018-01-16 21:59:13 +00:00
|
|
|
maintainers = with maintainers; [ fpletz ];
|
2015-03-31 13:54:06 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
builder = ./builder.sh;
|
|
|
|
}
|