From 755414fb96cfe8ec9e9089b715219c7ce68926a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Sat, 30 Jul 2022 21:26:57 +0200 Subject: [PATCH] geolite-legacy: 2022-01-25 -> 20220621 --- pkgs/data/misc/geolite-legacy/default.nix | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/pkgs/data/misc/geolite-legacy/default.nix b/pkgs/data/misc/geolite-legacy/default.nix index ad9560da9a48..91b3a61aec32 100644 --- a/pkgs/data/misc/geolite-legacy/default.nix +++ b/pkgs/data/misc/geolite-legacy/default.nix @@ -1,25 +1,25 @@ { lib, stdenv, fetchurl, zstd }: -stdenv.mkDerivation { +stdenv.mkDerivation rec { pname = "geolite-legacy"; - version = "2022-01-25"; + version = "20220621"; # We use Arch Linux package as a snapshot, because upstream database is updated in-place. geoip = fetchurl { - url = "https://archive.archlinux.org/packages/g/geoip-database/geoip-database-20220125-1-any.pkg.tar.zst"; - sha256 = "sha256-ieuLpllJTHYu28UXBGfDWbnr9Ei8pGnos+RPWDsAGcM="; + url = "https://archive.archlinux.org/packages/g/geoip-database/geoip-database-${version}-1-any.pkg.tar.zst"; + sha256 = "sha256-dmj3EtdAYVBcRnmHGNjBVyDQIKtVoubNs07zYVH9HVM="; }; extra = fetchurl { - url = "https://archive.archlinux.org/packages/g/geoip-database-extra/geoip-database-extra-20220125-1-any.pkg.tar.zst"; - sha256 = "sha256-xrTnuJvuvtvn+uIARtbuJUlHco3Q+9BXLljt35V3ip0="; + url = "https://archive.archlinux.org/packages/g/geoip-database-extra/geoip-database-extra-${version}-1-any.pkg.tar.zst"; + sha256 = "sha256-jViHQ+w9SEqFCbWf4KtNiTdWXT0RuCTjZ9dus0a3F0k="; }; nativeBuildInputs = [ zstd ]; buildCommand = '' - tar -xaf "$geoip" - tar -xaf "$extra" + tar -xaf ${geoip} + tar -xaf ${extra} mkdir -p $out/share mv usr/share/GeoIP $out/share '';