Adding WebDruid log analyzer. In the same time, reworking source autoupdate system a bit
svn path=/nixpkgs/trunk/; revision=16859
This commit is contained in:
25
pkgs/development/libraries/geoip/default.nix
Normal file
25
pkgs/development/libraries/geoip/default.nix
Normal file
@@ -0,0 +1,25 @@
|
||||
a :
|
||||
let
|
||||
s = import ./src-for-default.nix;
|
||||
buildInputs = with a; [
|
||||
zlib
|
||||
];
|
||||
in
|
||||
rec {
|
||||
src = a.fetchUrlFromSrcInfo s;
|
||||
|
||||
inherit (s) name;
|
||||
inherit buildInputs;
|
||||
configureFlags = [];
|
||||
|
||||
/* doConfigure should be removed if not needed */
|
||||
phaseNames = ["doConfigure" "doMakeInstall"];
|
||||
goSrcDir = "cd GeoIP-*/";
|
||||
|
||||
meta = {
|
||||
description = "Geolocation API";
|
||||
maintainers = [
|
||||
a.lib.maintainers.raskin
|
||||
];
|
||||
};
|
||||
}
|
||||
8
pkgs/development/libraries/geoip/src-for-default.nix
Normal file
8
pkgs/development/libraries/geoip/src-for-default.nix
Normal file
@@ -0,0 +1,8 @@
|
||||
rec {
|
||||
advertisedUrl="http://geolite.maxmind.com/download/geoip/api/c/GeoIP-1.4.6.tar.gz";
|
||||
version = "1.4.6";
|
||||
url="http://geolite.maxmind.com/download/geoip/api/c/GeoIP-1.4.6.tar.gz";
|
||||
hash = "1i4ixj6ha62qqzsn23qg428cv1zjj2ip7kmas62xgivvgm02kd0n";
|
||||
name = "geoip-1.4.6";
|
||||
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
downloadPage = "http://geolite.maxmind.com/download/geoip/api/c/";
|
||||
sourceRegexp = "GeoIP-[0-9.]+[.]tar[.]gz";
|
||||
choiceCommand = "tail -1";
|
||||
baseName = "geoip";
|
||||
}
|
||||
Reference in New Issue
Block a user