2019-10-24 02:20:38 +02:00
|
|
|
{ stdenv, fetchurl, ... }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "20190702";
|
|
|
|
name = "geocities-${version}";
|
|
|
|
src = fetchurl {
|
2019-12-20 05:54:26 +01:00
|
|
|
url =
|
|
|
|
"https://geolite.maxmind.com/download/geoip/database/GeoLite2-City.tar.gz";
|
2019-12-20 05:46:12 +01:00
|
|
|
# sha256 = "10jc4sff6p0gx5lirpy1m683l42al4sdh44hqmvnznxdgpgfcy3r";
|
|
|
|
sha256 = "1r2v3np74hzkzzndi15kwhl65wfy6aflfnj85ars0236bh2d786c";
|
2019-10-24 02:20:38 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
dontBuild = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/
|
|
|
|
cp GeoLite2-City.mmdb $out/
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "geo database";
|
2019-12-20 05:54:26 +01:00
|
|
|
homepage = "https://dev.maxmind.com/geoip/geoip2/geolite2/";
|
2019-10-24 02:20:38 +02:00
|
|
|
license = licenses.MIT;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ mrVanDalo ];
|
|
|
|
};
|
|
|
|
}
|