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-10-25 12:55:00 +01:00
|
|
|
"1xqxlnxxk8grqr0nr9vaf5r6z5bcdbadh83qhzr6jvhs20s37lsl";
|
2015-07-23 03:05:00 +01:00
|
|
|
srcGeoIPv6 = fetchDB
|
2017-09-18 20:54:00 +01:00
|
|
|
"GeoIPv6.dat.gz"
|
2017-10-25 12:55:00 +01:00
|
|
|
"0g3am25jmhm3r51hvz9lknkrnzj98hxdxav2cvrhz6b7wndgyspk";
|
2015-07-23 03:05:00 +01:00
|
|
|
srcGeoLiteCity = fetchDB
|
2017-09-18 20:54:00 +01:00
|
|
|
"GeoLiteCity.dat.gz"
|
2017-10-25 12:55:00 +01:00
|
|
|
"1syw19gx2mpqz9ypkaq2gh712bv60a7rf56afzd3qzkmgf6rw1qr";
|
2015-07-23 03:05:00 +01:00
|
|
|
srcGeoLiteCityv6 = fetchDB
|
2017-09-18 20:54:00 +01:00
|
|
|
"GeoLiteCityv6-beta/GeoLiteCityv6.dat.gz"
|
2017-10-25 12:55:00 +01:00
|
|
|
"0ihbqm1f5b9qb68i73ghmk30b6i2n53fmmhv2wadja5zcdpkhdvk";
|
2015-07-23 03:05:00 +01:00
|
|
|
srcGeoIPASNum = fetchDB
|
2017-09-18 20:54:00 +01:00
|
|
|
"asnum/GeoIPASNum.dat.gz"
|
2017-10-25 12:55:00 +01:00
|
|
|
"0adddsk0g9a3xaa0f8qx12s07n31wvirymjzrhnsg66i2qlm0h34";
|
2015-07-23 03:05:00 +01:00
|
|
|
srcGeoIPASNumv6 = fetchDB
|
2017-09-18 20:54:00 +01:00
|
|
|
"asnum/GeoIPASNumv6.dat.gz"
|
2017-10-25 12:55:00 +01:00
|
|
|
"1qar0vdlpk3razq83l5fzb54zihs2sma8xgngpql8njfgby0w825";
|
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;
|
|
|
|
}
|