2023-11-03 14:04:46 +00:00
|
|
|
{ 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 ];
|
|
|
|
|
2023-11-26 15:00:00 +00:00
|
|
|
vendorHash = null;
|
2023-11-03 14:04:46 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Print x509 certificate info";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "certinfo";
|
2023-11-03 14:04:46 +00:00
|
|
|
homepage = "https://github.com/pete911/certinfo";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ jakuzure ];
|
|
|
|
};
|
|
|
|
}
|