mastodon: 4.3.1 -> 4.3.2 (#361487)
[NixPkgs.git] / pkgs / by-name / ce / certspotter / package.nix
blob72cb1e54c0b8f8ed01154ddb1903a9bb27239c8e
1 { lib
2 , fetchFromGitHub
3 , buildGoModule
4 , lowdown-unsandboxed
5 }:
7 buildGoModule rec {
8   pname = "certspotter";
9   version = "0.18.0";
11   src = fetchFromGitHub {
12     owner = "SSLMate";
13     repo = "certspotter";
14     rev = "v${version}";
15     hash = "sha256-nyeqpDMRZRuHjfl3cI/I00KpVg3udjr0B8MEBZcF7nY=";
16   };
18   vendorHash = "sha256-6dV9FoPV8UfS0z5RuuopE99fHcT3RAWCdDi7jpHzVRE=";
20   ldflags = [ "-s" "-w" ];
22   nativeBuildInputs = [ lowdown-unsandboxed ];
24   postInstall = ''
25     cd man
26     make
27     mkdir -p $out/share/man/man8
28     mv *.8 $out/share/man/man8
29   '';
31   meta = with lib; {
32     description = "Certificate Transparency Log Monitor";
33     homepage = "https://github.com/SSLMate/certspotter";
34     changelog = "https://github.com/SSLMate/certspotter/blob/${src.rev}/CHANGELOG.md";
35     license = licenses.mpl20;
36     mainProgram = "certspotter";
37     maintainers = with maintainers; [ chayleaf ];
38   };