mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 09:04:17 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
43 lines
1.2 KiB
Nix
43 lines
1.2 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, autoreconfHook
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "ip2location-c";
|
|
version = "8.6.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "chrislim2888";
|
|
repo = "IP2Location-C-Library";
|
|
rev = version;
|
|
sha256 = "sha256-3/cLoGV7go4S1ew73IJzJEMTlLnvM3adl+/Sb7mPrZY=";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|