ip2location-c: 7.0.2 -> 8.4.0

This commit is contained in:
Fabian Affolter 2021-08-30 13:23:35 +02:00
parent 9e8fcb0184
commit d883522703

View file

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