Unverified Commit 506d0963 authored by Nick Cao's avatar Nick Cao Committed by GitHub
Browse files

Merge pull request #246504 from NickCao/dbip

dbip-country-lite: 2023-07 -> 2023-08
parents 34875a27 69a9c350
Loading
Loading
Loading
Loading
+6 −7
Original line number Diff line number Diff line
{ 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;
  };
}
})