at 24.11-pre 42 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.6.1"; 10 11 src = fetchFromGitHub { 12 owner = "chrislim2888"; 13 repo = "IP2Location-C-Library"; 14 rev = version; 15 sha256 = "sha256-3/cLoGV7go4S1ew73IJzJEMTlLnvM3adl+/Sb7mPrZY="; 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 mainProgram = "ip2location"; 31 longDescription = '' 32 A C library to find the country, region, city,coordinates, 33 zip code, time zone, ISP, domain name, connection type, area code, 34 weather, MCC, MNC, mobile brand name, elevation and usage type of 35 any IP address or host name in the IP2Location databases. 36 ''; 37 homepage = "https://www.ip2location.com/developers/c"; 38 license = with licenses; [ gpl3Plus lgpl3Plus ]; 39 maintainers = with maintainers; [ ]; 40 platforms = platforms.linux; 41 }; 42}