Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

47 lines
1.2 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
autoreconfHook,
}:
stdenv.mkDerivation rec {
pname = "ip2location-c";
version = "8.7.0";
src = fetchFromGitHub {
owner = "chrislim2888";
repo = "IP2Location-C-Library";
rev = version;
sha256 = "sha256-kp0tNZPP9u2xxFOmBAdivsVLtyF66o38H6eRrs2/S/Y=";
};
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";
mainProgram = "ip2location";
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 = [ ];
platforms = platforms.linux;
};
}