2021-08-30 12:23:35 +01:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, autoreconfHook
|
|
|
|
}:
|
2015-09-07 02:24:34 +01:00
|
|
|
|
2016-01-24 19:31:44 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "ip2location-c";
|
2021-12-07 06:06:38 +00:00
|
|
|
version = "8.4.1";
|
2015-09-07 02:24:34 +01:00
|
|
|
|
2021-08-30 12:23:35 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "chrislim2888";
|
|
|
|
repo = "IP2Location-C-Library";
|
|
|
|
rev = version;
|
2021-12-07 06:06:38 +00:00
|
|
|
sha256 = "sha256-a2ekDi8+08Mm/OsWZbahcpFMPNqmv+cECAONQLynhSY=";
|
2015-09-07 02:24:34 +01:00
|
|
|
};
|
|
|
|
|
2021-08-30 12:23:35 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
|
|
|
];
|
2015-09-07 02:24:34 +01:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
# Checks require a database, which require registration (although sample
|
|
|
|
# databases are available, downloading them for just 1 test seems excessive):
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2015-09-07 02:24:34 +01:00
|
|
|
description = "Library to look up locations of host names and IP addresses";
|
|
|
|
longDescription = ''
|
|
|
|
A C library to find the country, region, city,coordinates,
|
|
|
|
zip code, time zone, ISP, domain name, connection type, area code,
|
|
|
|
weather, MCC, MNC, mobile brand name, elevation and usage type of
|
|
|
|
any IP address or host name in the IP2Location databases.
|
|
|
|
'';
|
2021-08-30 12:23:35 +01:00
|
|
|
homepage = "https://www.ip2location.com/developers/c";
|
2015-09-07 02:24:34 +01:00
|
|
|
license = with licenses; [ gpl3Plus lgpl3Plus ];
|
2021-08-30 12:23:35 +01:00
|
|
|
maintainers = with maintainers; [ ];
|
2015-09-07 11:45:23 +01:00
|
|
|
platforms = platforms.linux;
|
2015-09-07 02:24:34 +01:00
|
|
|
};
|
|
|
|
}
|