2024-03-13 17:49:23 +00:00
|
|
|
{ buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
, lib
|
2024-04-23 10:26:06 +00:00
|
|
|
, installShellFiles
|
2024-03-13 17:49:23 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "cert-viewer";
|
2024-04-11 10:02:06 +00:00
|
|
|
version = "0.9.1";
|
2024-03-13 17:49:23 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mgit-at";
|
|
|
|
repo = "cert-viewer";
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-04-11 10:02:06 +00:00
|
|
|
hash = "sha256-6IPr2BG3y/7cmc2WkeeFDpQ59GNU1eOhhm49HE2w0cA=";
|
2024-03-13 17:49:23 +00:00
|
|
|
};
|
|
|
|
|
2024-04-11 10:02:06 +00:00
|
|
|
vendorHash = "sha256-jNT04bYH5L/Zcfvel673zr2UJLayCO443tvBGZjrBZk=";
|
2024-03-13 17:49:23 +00:00
|
|
|
|
2024-04-23 10:26:06 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
installShellFiles
|
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
$out/bin/cert-viewer --help-man > cert-viewer.1
|
|
|
|
installManPage cert-viewer.1
|
|
|
|
'';
|
|
|
|
|
2024-03-13 17:49:23 +00:00
|
|
|
meta = {
|
|
|
|
description = "Admin tool to view and inspect multiple x509 Certificates";
|
|
|
|
homepage = "https://github.com/mgit-at/cert-viewer";
|
2024-04-05 20:25:29 +00:00
|
|
|
license = lib.licenses.asl20;
|
2024-03-13 17:49:23 +00:00
|
|
|
maintainers = [ lib.maintainers.mkg20001 ];
|
|
|
|
mainProgram = "cert-viewer";
|
|
|
|
};
|
|
|
|
}
|