mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-06 22:03:13 +00:00
27 lines
650 B
Nix
27 lines
650 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "geoipupdate";
|
|
version = "4.10.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "maxmind";
|
|
repo = "geoipupdate";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-Djr0IjRxf4kKOsL0KMTAkRjW/zo0+r63TBCjet2ZhNw=";
|
|
};
|
|
|
|
vendorSha256 = "sha256-upyblOmT1UC1epOI5H92G/nzcCuGNyh3dbIApUg2Idk=";
|
|
|
|
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 ];
|
|
};
|
|
}
|