forked from mirrors/nixpkgs
geolite-legacy: 2017-05-26 -> 2017-09-17
This commit is contained in:
parent
ad13618c9b
commit
c7ed26b6a9
|
@ -17,4 +17,6 @@ for var in "${!src@}"; do
|
|||
done
|
||||
|
||||
gzip -dv *.gz
|
||||
xz -dv *.xz
|
||||
|
||||
ln -s GeoLiteCity.dat GeoIPCity.dat
|
||||
ln -s GeoLiteCityv6.dat GeoIPCityv6.dat
|
||||
|
|
|
@ -1,32 +1,32 @@
|
|||
{ stdenv, fetchurl }:
|
||||
|
||||
let
|
||||
fetchDB = src: name: sha256: fetchurl {
|
||||
inherit name sha256;
|
||||
fetchDB = src: sha256: fetchurl {
|
||||
inherit sha256;
|
||||
url = "https://geolite.maxmind.com/download/geoip/database/${src}";
|
||||
};
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
name = "geolite-legacy-${version}";
|
||||
version = "2017-05-26";
|
||||
version = "2017-09-17";
|
||||
|
||||
srcGeoIP = fetchDB
|
||||
"GeoLiteCountry/GeoIP.dat.gz" "GeoIP.dat.gz"
|
||||
"GeoLiteCountry/GeoIP.dat.gz"
|
||||
"04akk0jczvki8rdvz6z6v5s26ds0m27953lzvp3v0fsg7rl08q5n";
|
||||
srcGeoIPv6 = fetchDB
|
||||
"GeoIPv6.dat.gz" "GeoIPv6.dat.gz"
|
||||
"GeoIPv6.dat.gz"
|
||||
"0i0885vvj0s5sysyafvk8pc8gr3znh7gmiy8rp4iiai7qnbylb7y";
|
||||
srcGeoLiteCity = fetchDB
|
||||
"GeoLiteCity.dat.xz" "GeoIPCity.dat.xz"
|
||||
"0bgf4kfg4mmqvgmrff27lbiglnnb3pnd7f3i4fxzl68c33bizmbm";
|
||||
"GeoLiteCity.dat.gz"
|
||||
"1yqxqfndnsvqc3hrs0nm6nvs0wp8jh9phs0yzrn48rlb9agcb8gj";
|
||||
srcGeoLiteCityv6 = fetchDB
|
||||
"GeoLiteCityv6-beta/GeoLiteCityv6.dat.gz" "GeoIPCityv6.dat.gz"
|
||||
"06slyw2644y2z5bgn4yl79aa4smf94mdcddybldh1glc3ay3p4iz";
|
||||
"GeoLiteCityv6-beta/GeoLiteCityv6.dat.gz"
|
||||
"05grm006r723l9zm7pdmwwycc658ni858hcrcf5mysv0hmc3wqb2";
|
||||
srcGeoIPASNum = fetchDB
|
||||
"asnum/GeoIPASNum.dat.gz" "GeoIPASNum.dat.gz"
|
||||
"asnum/GeoIPASNum.dat.gz"
|
||||
"1gpvsqvq9z9pg9zfn86i50fb481llfyn79r1jwddwfflp1qqfrrv";
|
||||
srcGeoIPASNumv6 = fetchDB
|
||||
"asnum/GeoIPASNumv6.dat.gz" "GeoIPASNumv6.dat.gz"
|
||||
"asnum/GeoIPASNumv6.dat.gz"
|
||||
"0nmhz82dn9clm5w2y6z861ifj7i761spy1p1zcam93046cdpqqaa";
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
|
@ -34,7 +34,7 @@ stdenv.mkDerivation rec {
|
|||
homepage = https://geolite.maxmind.com/download/geoip;
|
||||
license = licenses.cc-by-sa-30;
|
||||
platforms = platforms.all;
|
||||
maintainers = with maintainers; [ nckx ];
|
||||
maintainers = with maintainers; [ nckx fpletz ];
|
||||
};
|
||||
|
||||
builder = ./builder.sh;
|
||||
|
|
Loading…
Reference in a new issue