3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/misc/geoipupdate/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
649 B
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub }:
2019-11-17 18:56:39 +00:00
buildGoModule rec {
pname = "geoipupdate";
2022-02-16 08:45:44 +00:00
version = "4.9.0";
2019-11-17 18:56:39 +00:00
src = fetchFromGitHub {
owner = "maxmind";
repo = "geoipupdate";
rev = "v${version}";
2022-02-16 08:45:44 +00:00
sha256 = "sha256-AqA0hzZGn5XU2Pyoj1vaP+ht7r3dpDhuang4KCXaSgs=";
2019-11-17 18:56:39 +00:00
};
2022-02-16 08:45:44 +00:00
vendorSha256 = "sha256-S+CnIPoyGM7dEQICOIlAWBIC24Fyt7q+OY382evDgQc=";
2019-11-17 18:56:39 +00:00
2022-02-25 09:42:43 +00:00
ldflags = [ "-X main.version=${version}" ];
doCheck = false;
meta = with lib; {
2019-11-17 18:56:39 +00:00
description = "Automatic GeoIP database updater";
homepage = "https://github.com/maxmind/geoipupdate";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ das_j ];
};
}