diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-03-14 17:54:40 +0100 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-03-17 11:23:59 +0100 |
commit | ea1cd70128a0ca02881a345a3b2b891b0b7a0c7c (patch) | |
tree | 53a85ea624d5c94c527f4d8cc540516971799750 /pkgs/development/libraries/geoip/default.nix | |
parent | 779a95998246f260dde468c65203c32dbf6d00f2 (diff) |
geoip: Convert to mkDerivation
Also, drop unused zlib dependency and add some meta attributes.
Diffstat (limited to 'pkgs/development/libraries/geoip/default.nix')
-rw-r--r-- | pkgs/development/libraries/geoip/default.nix | 29 |
1 files changed, 12 insertions, 17 deletions
diff --git a/pkgs/development/libraries/geoip/default.nix b/pkgs/development/libraries/geoip/default.nix index 94c0505bc6fa7..1abcb7c6943d5 100644 --- a/pkgs/development/libraries/geoip/default.nix +++ b/pkgs/development/libraries/geoip/default.nix @@ -1,24 +1,19 @@ -a : -let - s = import ./src-for-default.nix; - buildInputs = with a; [ - zlib - ]; -in -rec { - src = a.fetchUrlFromSrcInfo s; +{ stdenv, fetchurl }: - inherit (s) name; - inherit buildInputs; - configureFlags = []; +let version = "1.6.0"; in - /* doConfigure should be removed if not needed */ - phaseNames = ["doConfigure" "doMakeInstall"]; +stdenv.mkDerivation { + name = "geoip-${version}"; + + src = fetchurl { + url = "http://geolite.maxmind.com/download/geoip/api/c/GeoIP-${version}.tar.gz"; + sha256 = "0dd6si4cvip73kxdn43apg6yygvaf7dnk5awqfg9w2fd2ll0qnh7"; + }; meta = { description = "Geolocation API"; - maintainers = [ - a.lib.maintainers.raskin - ]; + maintainers = [ stdenv.lib.maintainers.raskin ]; + license = stdenv.lib.licenses.lgpl21; + platforms = stdenv.lib.platforms.linux; }; } |