1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 22:50:49 +00:00
nixpkgs/pkgs/development/libraries/ip2location-c/default.nix
Tobias Geerinckx-Rice 9fb8020e4e Add version attribute where maintainers |= nckx
This will probably be mandatory soon, and is a step in the right
direction. Removes the deprecated meta.version, and move some meta
sections to the end of the file where I should have put them in
the first place.
2016-01-25 17:35:21 +01:00

34 lines
1.2 KiB
Nix

{ stdenv, fetchurl, autoreconfHook }:
stdenv.mkDerivation rec {
name = "ip2location-c-${version}";
version = "7.0.2"; # meta.homepage might change after a major update
src = fetchurl {
sha256 = "1gs43qgcyfn83abrkhvvw1s67d1sbkbj3hab9m17ysn6swafiycx";
url = "http://www.ip2location.com/downloads/ip2location-c-${version}.tar.gz";
};
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 stdenv.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 = http://www.ip2location.com/developers/c-7;
license = with licenses; [ gpl3Plus lgpl3Plus ];
platforms = platforms.linux;
maintainers = with maintainers; [ nckx ];
};
}