nixpkgs-suyu/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
650 B
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub }:
2019-11-17 19:56:39 +01:00
buildGoModule rec {
pname = "geoipupdate";
2022-09-27 14:54:23 +02:00
version = "4.10.0";
2019-11-17 19:56:39 +01:00
src = fetchFromGitHub {
owner = "maxmind";
repo = "geoipupdate";
rev = "v${version}";
2022-09-27 14:54:23 +02:00
sha256 = "sha256-Djr0IjRxf4kKOsL0KMTAkRjW/zo0+r63TBCjet2ZhNw=";
2019-11-17 19:56:39 +01:00
};
2022-09-27 14:54:23 +02:00
vendorSha256 = "sha256-upyblOmT1UC1epOI5H92G/nzcCuGNyh3dbIApUg2Idk=";
2019-11-17 19:56:39 +01:00
2022-02-25 10:42:43 +01:00
ldflags = [ "-X main.version=${version}" ];
doCheck = false;
meta = with lib; {
2019-11-17 19:56:39 +01:00
description = "Automatic GeoIP database updater";
homepage = "https://github.com/maxmind/geoipupdate";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ das_j ];
};
}