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; }; }