mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 08:04:14 +00:00
27 lines
649 B
Nix
27 lines
649 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "geoipupdate";
|
|
version = "4.9.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "maxmind";
|
|
repo = "geoipupdate";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-AqA0hzZGn5XU2Pyoj1vaP+ht7r3dpDhuang4KCXaSgs=";
|
|
};
|
|
|
|
vendorSha256 = "sha256-S+CnIPoyGM7dEQICOIlAWBIC24Fyt7q+OY382evDgQc=";
|
|
|
|
ldflags = [ "-X main.version=${version}" ];
|
|
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "Automatic GeoIP database updater";
|
|
homepage = "https://github.com/maxmind/geoipupdate";
|
|
license = with licenses; [ asl20 ];
|
|
maintainers = with maintainers; [ das_j ];
|
|
};
|
|
}
|