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
|
2019-08-13 22:52:01 +01:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "geolite-legacy";
|
2017-12-04 06:23:47 +00:00
|
|
|
version = "2017-12-02";
|
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-12-04 06:23:47 +00:00
|
|
|
"1nggml11wzlanmzk6wbw2kla91fj8ggd9kh9yz42lnyckdlf5ac4";
|
2015-07-23 03:05:00 +01:00
|
|
|
srcGeoIPv6 = fetchDB
|
2017-09-18 20:54:00 +01:00
|
|
|
"GeoIPv6.dat.gz"
|
2017-12-04 06:23:47 +00:00
|
|
|
"0w809xgmr5zi4fgm9q3lhrnh1vl62s49n737bhq4jplm5918ki50";
|
2015-07-23 03:05:00 +01:00
|
|
|
srcGeoLiteCity = fetchDB
|
2017-09-18 20:54:00 +01:00
|
|
|
"GeoLiteCity.dat.gz"
|
2017-12-04 06:23:47 +00:00
|
|
|
"0cibajsv5xdjpw1qfx22izm5azqcj0d7nvk39irgwflkim9jfjbs";
|
2015-07-23 03:05:00 +01:00
|
|
|
srcGeoLiteCityv6 = fetchDB
|
2017-09-18 20:54:00 +01:00
|
|
|
"GeoLiteCityv6-beta/GeoLiteCityv6.dat.gz"
|
2017-12-04 06:23:47 +00:00
|
|
|
"1ldwbzgs64irfgb3kq3jp8fmhwmwqk713dr4kkdqlglrblr9hfkc";
|
2015-07-23 03:05:00 +01:00
|
|
|
srcGeoIPASNum = fetchDB
|
2017-09-18 20:54:00 +01:00
|
|
|
"asnum/GeoIPASNum.dat.gz"
|
2017-12-04 06:23:47 +00:00
|
|
|
"06qqs8qr8vxqwd80npz7n66k3bpc1vs7w43i2bb4k0di5yxnjwr9";
|
2015-07-23 03:05:00 +01:00
|
|
|
srcGeoIPASNumv6 = fetchDB
|
2017-09-18 20:54:00 +01:00
|
|
|
"asnum/GeoIPASNumv6.dat.gz"
|
2017-12-04 06:23:47 +00:00
|
|
|
"1qyq4h8cja62giv6q1qqc502vsq53wzz1kx80mgvwngmycrxa21k";
|
2015-03-31 14:54:06 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "GeoLite Legacy IP geolocation databases";
|
2020-04-01 02:11:51 +01:00
|
|
|
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;
|
2018-01-16 21:59:13 +00:00
|
|
|
maintainers = with maintainers; [ fpletz ];
|
2015-03-31 14:54:06 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
builder = ./builder.sh;
|
|
|
|
}
|