2015-09-07 01:24:34 +00:00
|
|
|
{ stdenv, fetchurl, autoreconfHook }:
|
|
|
|
|
2016-01-24 19:31:44 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2015-09-07 01:24:34 +00:00
|
|
|
name = "ip2location-c-${version}";
|
2016-01-24 19:31:44 +00:00
|
|
|
version = "7.0.2"; # meta.homepage might change after a major update
|
2015-09-07 01:24:34 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
sha256 = "1gs43qgcyfn83abrkhvvw1s67d1sbkbj3hab9m17ysn6swafiycx";
|
2018-06-28 18:43:35 +00:00
|
|
|
url = "https://www.ip2location.com/downloads/ip2location-c-${version}.tar.gz";
|
2015-09-07 01:24:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
# Checks require a database, which require registration (although sample
|
|
|
|
# databases are available, downloading them for just 1 test seems excessive):
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
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.
|
|
|
|
'';
|
|
|
|
homepage = http://www.ip2location.com/developers/c-7;
|
|
|
|
license = with licenses; [ gpl3Plus lgpl3Plus ];
|
2015-09-07 10:45:23 +00:00
|
|
|
platforms = platforms.linux;
|
2015-09-07 01:24:34 +00:00
|
|
|
};
|
|
|
|
}
|