summary refs log tree commit diff
path: root/pkgs/development/libraries/ip2location-c
diff options
context:
space:
mode:
authorTobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com>2015-09-07 03:24:34 +0200
committerTobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com>2015-09-07 03:24:34 +0200
commitbe10d389f1d8247a1284b16aa86a8a5563b0e528 (patch)
tree8da1b29d1c3fae3fb2a07827a5dc0907b598a6ee /pkgs/development/libraries/ip2location-c
parent595063ffa7f3df9942bb45c116cfefcbf600783f (diff)
downloadnixpkgs-be10d389f1d8247a1284b16aa86a8a5563b0e528.tar
nixpkgs-be10d389f1d8247a1284b16aa86a8a5563b0e528.tar.gz
nixpkgs-be10d389f1d8247a1284b16aa86a8a5563b0e528.tar.bz2
nixpkgs-be10d389f1d8247a1284b16aa86a8a5563b0e528.tar.lz
nixpkgs-be10d389f1d8247a1284b16aa86a8a5563b0e528.tar.xz
nixpkgs-be10d389f1d8247a1284b16aa86a8a5563b0e528.tar.zst
nixpkgs-be10d389f1d8247a1284b16aa86a8a5563b0e528.zip
ip2location-c: init at 7.0.2
Diffstat (limited to 'pkgs/development/libraries/ip2location-c')
-rw-r--r--pkgs/development/libraries/ip2location-c/default.nix34
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/development/libraries/ip2location-c/default.nix b/pkgs/development/libraries/ip2location-c/default.nix
new file mode 100644
index 00000000000..2ce18b96ddc
--- /dev/null
+++ b/pkgs/development/libraries/ip2location-c/default.nix
@@ -0,0 +1,34 @@
+{ stdenv, fetchurl, autoreconfHook }:
+
+let version = "7.0.2"; in # meta.homepage might change after a major update
+stdenv.mkDerivation {
+  name = "ip2location-c-${version}";
+
+  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; {
+    inherit version;
+    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.unix;
+    maintainers = with maintainers; [ nckx ];
+  };
+}