btrbk: add mainProgram
[NixPkgs.git] / pkgs / by-name / dn / dnstake / package.nix
blob37e5e0c38af7d0c5fd593b0d6e1b18d642179f58
1 { lib
2 , buildGoModule
3 , fetchFromGitHub
4 , fetchpatch
5 }:
7 buildGoModule rec {
8   pname = "dnstake";
9   version = "0.1.1";
11   src = fetchFromGitHub {
12     owner = "pwnesia";
13     repo = pname;
14     rev = "v${version}";
15     sha256 = "sha256-k6j7DIwK8YAKmEjn8JJO7XBcap9ui6cgUSJG7CeHAAM=";
16   };
18   patches = [
19     # https://github.com/pwnesia/dnstake/pull/36
20     (fetchpatch {
21       name = "update-x-sys-fix-darwin.patch";
22       url = "https://github.com/pwnesia/dnstake/commit/974efbbff4ce26d2f2646ca2ceb1316c131cefbe.patch";
23       sha256 = "sha256-fLOGF8damdLROd8T0fH/FGSVX23dtc+yHhSvVCwVeuY=";
24     })
25   ];
27   vendorHash = "sha256-lV6dUl+OMUQfhlgNL38k0Re1Mr3VP9b8SI3vTJ8CP18=";
29   meta = with lib; {
30     description = "Tool to check missing hosted DNS zones";
31     homepage = "https://github.com/pwnesia/dnstake";
32     license = with licenses; [ mit ];
33     maintainers = with maintainers; [ fab ];
34     mainProgram = "dnstake";
35   };