2015-03-31 06:54:06 -07:00
|
|
|
{ stdenv, fetchurl }:
|
|
|
|
|
2015-04-15 19:42:31 -07:00
|
|
|
let
|
2015-07-22 19:05:00 -07:00
|
|
|
fetchDB = src: name: sha256: fetchurl {
|
|
|
|
inherit name sha256;
|
|
|
|
url = "https://geolite.maxmind.com/download/geoip/database/${src}";
|
2015-04-15 19:42:31 -07:00
|
|
|
};
|
|
|
|
in
|
2016-01-25 11:08:34 -08:00
|
|
|
stdenv.mkDerivation rec {
|
2015-03-31 06:54:06 -07:00
|
|
|
name = "geolite-legacy-${version}";
|
2016-06-06 07:18:53 -07:00
|
|
|
version = "2016-06-06";
|
2015-03-31 06:54:06 -07:00
|
|
|
|
2015-07-22 19:05:00 -07:00
|
|
|
srcGeoIP = fetchDB
|
|
|
|
"GeoLiteCountry/GeoIP.dat.gz" "GeoIP.dat.gz"
|
2016-05-03 14:41:33 -07:00
|
|
|
"1fcbbbdqbxgqmgk61awzbbnd7d9yr2hnfmbc5z5z5s77aw8i8nkj";
|
2015-07-22 19:05:00 -07:00
|
|
|
srcGeoIPv6 = fetchDB
|
|
|
|
"GeoIPv6.dat.gz" "GeoIPv6.dat.gz"
|
2016-05-03 14:41:33 -07:00
|
|
|
"06cx1fza11g25ckjkih6p4awk2pg0jwr421fh8bijwx6i550paca";
|
2015-07-22 19:05:00 -07:00
|
|
|
srcGeoLiteCity = fetchDB
|
|
|
|
"GeoLiteCity.dat.xz" "GeoIPCity.dat.xz"
|
2016-05-03 14:41:33 -07:00
|
|
|
"1246328q4bhrri15pywkhbaz362ch1vnfw3h0qr8wn8f6ilix6nd";
|
2015-07-22 19:05:00 -07:00
|
|
|
srcGeoLiteCityv6 = fetchDB
|
|
|
|
"GeoLiteCityv6-beta/GeoLiteCityv6.dat.gz" "GeoIPCityv6.dat.gz"
|
2016-05-03 14:41:33 -07:00
|
|
|
"1v8wdqh6yjicb7bdcxp7v5dimlrny1fiynf4wr6wh65vr738csy2";
|
2015-07-22 19:05:00 -07:00
|
|
|
srcGeoIPASNum = fetchDB
|
|
|
|
"asnum/GeoIPASNum.dat.gz" "GeoIPASNum.dat.gz"
|
2016-06-06 07:18:53 -07:00
|
|
|
"102lpcwsbrqin6wpg887hs0p05zcs7rdgrl9qv8x4mfrgnp0vk91";
|
2015-07-22 19:05:00 -07:00
|
|
|
srcGeoIPASNumv6 = fetchDB
|
|
|
|
"asnum/GeoIPASNumv6.dat.gz" "GeoIPASNumv6.dat.gz"
|
2016-06-06 07:18:53 -07:00
|
|
|
"06jglp1786bbgfn8wb1y8yxx3djzcfimacrmycwwyvgn1a5i80ay";
|
2015-03-31 06:54:06 -07:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "GeoLite Legacy IP geolocation databases";
|
|
|
|
homepage = https://geolite.maxmind.com/download/geoip;
|
2015-05-28 10:20:29 -07:00
|
|
|
license = licenses.cc-by-sa-30;
|
2015-08-05 15:30:09 -07:00
|
|
|
platforms = platforms.all;
|
2015-03-31 06:54:06 -07:00
|
|
|
maintainers = with maintainers; [ nckx ];
|
|
|
|
};
|
|
|
|
|
|
|
|
builder = ./builder.sh;
|
|
|
|
}
|