From 69a9c3509e4799f19921b36228607b960e409d5a Mon Sep 17 00:00:00 2001 From: Nick Cao Date: Tue, 1 Aug 2023 14:34:17 +0800 Subject: [PATCH] dbip-country-lite: 2023-07 -> 2023-08 --- pkgs/data/misc/dbip-country-lite/default.nix | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/pkgs/data/misc/dbip-country-lite/default.nix b/pkgs/data/misc/dbip-country-lite/default.nix index 73c8d4414505..60d5e332c216 100644 --- a/pkgs/data/misc/dbip-country-lite/default.nix +++ b/pkgs/data/misc/dbip-country-lite/default.nix @@ -1,16 +1,15 @@ { lib , stdenvNoCC , fetchurl -, dbip-country-lite }: -stdenvNoCC.mkDerivation rec { +stdenvNoCC.mkDerivation (finalAttrs: { pname = "dbip-country-lite"; - version = "2023-07"; + version = "2023-08"; src = fetchurl { - url = "https://download.db-ip.com/free/dbip-country-lite-${version}.mmdb.gz"; - hash = "sha256-WVsyhopYbBlCWDq9UoPe1rcGU3pBYsXkqNWbaQXzRFA="; + url = "https://download.db-ip.com/free/dbip-country-lite-${finalAttrs.version}.mmdb.gz"; + hash = "sha256-+IQSHgfVZ2codxkOKwi23CLjm+rYDZOQq5EWJs0OLiQ="; }; dontUnpack = true; @@ -24,7 +23,7 @@ stdenvNoCC.mkDerivation rec { runHook postBuild ''; - passthru.mmdb = "${dbip-country-lite}/share/dbip/dbip-country-lite.mmdb"; + passthru.mmdb = "${finalAttrs.finalPackage}/share/dbip/dbip-country-lite.mmdb"; meta = with lib; { description = "The free IP to Country Lite database by DB-IP"; @@ -33,4 +32,4 @@ stdenvNoCC.mkDerivation rec { maintainers = with maintainers; [ nickcao ]; platforms = platforms.all; }; -} +})