2023-10-23 05:13:02 -06:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, buildGoModule
|
2024-10-06 14:02:23 -06:00
|
|
|
, lowdown-unsandboxed
|
2023-10-23 05:13:02 -06:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "certspotter";
|
2023-11-13 23:39:01 -07:00
|
|
|
version = "0.18.0";
|
2023-10-23 05:13:02 -06:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "SSLMate";
|
|
|
|
repo = "certspotter";
|
|
|
|
rev = "v${version}";
|
2023-11-13 23:39:01 -07:00
|
|
|
hash = "sha256-nyeqpDMRZRuHjfl3cI/I00KpVg3udjr0B8MEBZcF7nY=";
|
2023-10-23 05:13:02 -06:00
|
|
|
};
|
|
|
|
|
|
|
|
vendorHash = "sha256-6dV9FoPV8UfS0z5RuuopE99fHcT3RAWCdDi7jpHzVRE=";
|
|
|
|
|
|
|
|
ldflags = [ "-s" "-w" ];
|
|
|
|
|
2024-10-06 14:02:23 -06:00
|
|
|
nativeBuildInputs = [ lowdown-unsandboxed ];
|
2023-10-23 05:13:02 -06:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
cd man
|
|
|
|
make
|
|
|
|
mkdir -p $out/share/man/man8
|
|
|
|
mv *.8 $out/share/man/man8
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Certificate Transparency Log Monitor";
|
|
|
|
homepage = "https://github.com/SSLMate/certspotter";
|
|
|
|
changelog = "https://github.com/SSLMate/certspotter/blob/${src.rev}/CHANGELOG.md";
|
|
|
|
license = licenses.mpl20;
|
|
|
|
mainProgram = "certspotter";
|
|
|
|
maintainers = with maintainers; [ chayleaf ];
|
|
|
|
};
|
|
|
|
}
|