2021-02-05 17:12:51 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "geoipupdate";
|
2024-01-25 14:12:00 +00:00
|
|
|
version = "6.1.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "maxmind";
|
|
|
|
repo = "geoipupdate";
|
|
|
|
rev = "v${version}";
|
2024-01-25 14:12:00 +00:00
|
|
|
sha256 = "sha256-/iLWy3yKO34nnn5ygAewR036PzgUGIqdhXNK4fx3Ym8=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
vendorHash = "sha256-jW5/09sOUvPZVM1wzL4xg/a14kZ0KsM8e+zEQoADsl4=";
|
2022-03-05 16:20:37 +00:00
|
|
|
|
|
|
|
ldflags = [ "-X main.version=${version}" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Automatic GeoIP database updater";
|
|
|
|
homepage = "https://github.com/maxmind/geoipupdate";
|
|
|
|
license = with licenses; [ asl20 ];
|
2024-01-02 11:29:13 +00:00
|
|
|
maintainers = teams.helsinki-systems.members;
|
2024-02-29 20:09:43 +00:00
|
|
|
mainProgram = "geoipupdate";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2020-08-20 17:08:02 +00:00
|
|
|
}
|