8 stdenv.mkDerivation rec {
9 pname = "geolite-legacy";
12 # We use Arch Linux package as a snapshot, because upstream database is updated in-place.
14 url = "https://archive.archlinux.org/packages/g/geoip-database/geoip-database-${version}-1-any.pkg.tar.zst";
15 hash = "sha256-9rPp1Lu6Q4+Cb4N4e/ezHacpLuUwbGQefEPuSrH8O6o=";
16 nativeBuildInputs = [ zstd ];
21 url = "https://archive.archlinux.org/packages/g/geoip-database-extra/geoip-database-extra-${version}-1-any.pkg.tar.zst";
22 hash = "sha256-sb06yszstKalc+b9rSuStRuY3YRebAL1Q4jEJkbGiMI=";
23 nativeBuildInputs = [ zstd ];
28 mkdir -p $out/share/GeoIP
29 cp ${geoip}/usr/share/GeoIP/*.dat $out/share/GeoIP
30 cp ${extra}/usr/share/GeoIP/*.dat $out/share/GeoIP
34 description = "GeoLite Legacy IP geolocation databases";
35 homepage = "https://mailfud.org/geoip-legacy/";
36 license = lib.licenses.cc-by-sa-40;
37 platforms = lib.platforms.all;
38 maintainers = with lib.maintainers; [ fpletz ];