nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 41 lines 1.2 kB view raw
1{ lib 2, stdenv 3, fetchFromGitHub 4, autoreconfHook 5}: 6 7stdenv.mkDerivation rec { 8 pname = "ip2location-c"; 9 version = "8.4.1"; 10 11 src = fetchFromGitHub { 12 owner = "chrislim2888"; 13 repo = "IP2Location-C-Library"; 14 rev = version; 15 sha256 = "sha256-a2ekDi8+08Mm/OsWZbahcpFMPNqmv+cECAONQLynhSY="; 16 }; 17 18 nativeBuildInputs = [ 19 autoreconfHook 20 ]; 21 22 enableParallelBuilding = true; 23 24 # Checks require a database, which require registration (although sample 25 # databases are available, downloading them for just 1 test seems excessive): 26 doCheck = false; 27 28 meta = with lib; { 29 description = "Library to look up locations of host names and IP addresses"; 30 longDescription = '' 31 A C library to find the country, region, city,coordinates, 32 zip code, time zone, ISP, domain name, connection type, area code, 33 weather, MCC, MNC, mobile brand name, elevation and usage type of 34 any IP address or host name in the IP2Location databases. 35 ''; 36 homepage = "https://www.ip2location.com/developers/c"; 37 license = with licenses; [ gpl3Plus lgpl3Plus ]; 38 maintainers = with maintainers; [ ]; 39 platforms = platforms.linux; 40 }; 41}