certinfo: init at 1.0.21

Co-authored-by: Arne Keller <2012gdwu+github@posteo.de>
This commit is contained in:
jakuzure 2023-11-03 15:04:46 +01:00 committed by Emery Hemingway
parent 98e0fddb64
commit ec84f77e06
2 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,29 @@
{ stdenv, lib, buildGoModule, fetchFromGitHub, libX11, darwin }:
buildGoModule rec {
pname = "certinfo";
version = "1.0.21";
src = fetchFromGitHub {
owner = "pete911";
repo = "certinfo";
rev = "v${version}";
sha256 = "acAjX4M/egAhGVOeEKw5r2wteA/UsWf9fGR/HnhUr/w=";
};
# clipboard functionality not working on Darwin
doCheck = !(stdenv.isDarwin && stdenv.isAarch64);
buildInputs = [ ]
++ lib.optionals stdenv.isLinux [ libX11 ]
++ lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Cocoa ];
vendorSha256 = null;
meta = with lib; {
description = "Print x509 certificate info";
homepage = "https://github.com/pete911/certinfo";
license = licenses.mit;
maintainers = with maintainers; [ jakuzure ];
};
}

View File

@ -466,6 +466,8 @@ with pkgs;
certgraph = callPackage ../tools/security/certgraph { };
certinfo = callPackage ../tools/security/certinfo { };
certsync = callPackage ../tools/security/certsync { };
cewl = callPackage ../tools/security/cewl { };