nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, buildGoModule, fetchFromGitHub }:
2
3buildGoModule rec {
4 pname = "geoipupdate";
5 version = "5.1.1";
6
7 src = fetchFromGitHub {
8 owner = "maxmind";
9 repo = "geoipupdate";
10 rev = "v${version}";
11 sha256 = "sha256-n32HxXNk/mHYL6Dn3c8jmTIwrwOfyyd/dui1Uw/xf90=";
12 };
13
14 vendorHash = "sha256-t6uhFvuR54Q4nYur/3oBzAbBTaIjzHfx7GeEk6X/0os=";
15
16 ldflags = [ "-X main.version=${version}" ];
17
18 doCheck = false;
19
20 meta = with lib; {
21 description = "Automatic GeoIP database updater";
22 homepage = "https://github.com/maxmind/geoipupdate";
23 license = with licenses; [ asl20 ];
24 maintainers = with maintainers; [ das_j ];
25 };
26}