diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/ip2location-c')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/ip2location-c/default.nix | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/ip2location-c/default.nix b/nixpkgs/pkgs/development/libraries/ip2location-c/default.nix new file mode 100644 index 000000000000..510bc162501d --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/ip2location-c/default.nix @@ -0,0 +1,41 @@ +{ lib +, stdenv +, fetchFromGitHub +, autoreconfHook +}: + +stdenv.mkDerivation rec { + pname = "ip2location-c"; + version = "8.4.0"; + + src = fetchFromGitHub { + owner = "chrislim2888"; + repo = "IP2Location-C-Library"; + rev = version; + sha256 = "0rqjgmv62s7abiiqi3ff3ff838qx4pzr509irmzvqlflnkxxi0q6"; + }; + + 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 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 = "https://www.ip2location.com/developers/c"; + license = with licenses; [ gpl3Plus lgpl3Plus ]; + maintainers = with maintainers; [ ]; + platforms = platforms.linux; + }; +} |