From d88352270306803d03fb99c5daf32e0d1c7fed66 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 30 Aug 2021 13:23:35 +0200 Subject: [PATCH] ip2location-c: 7.0.2 -> 8.4.0 --- .../libraries/ip2location-c/default.nix | 23 +++++++++++++------ 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/pkgs/development/libraries/ip2location-c/default.nix b/pkgs/development/libraries/ip2location-c/default.nix index 23801d3436da..510bc162501d 100644 --- a/pkgs/development/libraries/ip2location-c/default.nix +++ b/pkgs/development/libraries/ip2location-c/default.nix @@ -1,15 +1,23 @@ -{ lib, stdenv, fetchurl, autoreconfHook }: +{ lib +, stdenv +, fetchFromGitHub +, autoreconfHook +}: stdenv.mkDerivation rec { pname = "ip2location-c"; - version = "7.0.2"; # meta.homepage might change after a major update + version = "8.4.0"; - src = fetchurl { - sha256 = "1gs43qgcyfn83abrkhvvw1s67d1sbkbj3hab9m17ysn6swafiycx"; - url = "https://www.ip2location.com/downloads/ip2location-c-${version}.tar.gz"; + src = fetchFromGitHub { + owner = "chrislim2888"; + repo = "IP2Location-C-Library"; + rev = version; + sha256 = "0rqjgmv62s7abiiqi3ff3ff838qx4pzr509irmzvqlflnkxxi0q6"; }; - nativeBuildInputs = [ autoreconfHook ]; + nativeBuildInputs = [ + autoreconfHook + ]; enableParallelBuilding = true; @@ -25,8 +33,9 @@ stdenv.mkDerivation rec { weather, MCC, MNC, mobile brand name, elevation and usage type of any IP address or host name in the IP2Location databases. ''; - homepage = "http://www.ip2location.com/developers/c-7"; + homepage = "https://www.ip2location.com/developers/c"; license = with licenses; [ gpl3Plus lgpl3Plus ]; + maintainers = with maintainers; [ ]; platforms = platforms.linux; }; }