2024-10-04 16:56:33 +00:00
|
|
|
{ stdenv, lib, buildGo123Module, fetchFromGitHub, libX11, darwin }:
|
2024-01-02 11:29:13 +00:00
|
|
|
|
2024-10-04 16:56:33 +00:00
|
|
|
buildGo123Module rec {
|
2024-01-02 11:29:13 +00:00
|
|
|
pname = "certinfo";
|
2024-10-04 16:56:33 +00:00
|
|
|
version = "1.0.24";
|
2024-01-02 11:29:13 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pete911";
|
|
|
|
repo = "certinfo";
|
|
|
|
rev = "v${version}";
|
2024-10-04 16:56:33 +00:00
|
|
|
sha256 = "sha256-BI5gYWKGMU0wLvnArG41bLWj+9ipe/GARKRX0fwz4ag=";
|
2024-01-02 11:29:13 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# clipboard functionality not working on Darwin
|
2024-09-26 11:04:55 +00:00
|
|
|
doCheck = !(stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64);
|
2024-01-02 11:29:13 +00:00
|
|
|
|
|
|
|
buildInputs = [ ]
|
2024-09-26 11:04:55 +00:00
|
|
|
++ lib.optionals stdenv.hostPlatform.isLinux [ libX11 ]
|
|
|
|
++ lib.optionals stdenv.hostPlatform.isDarwin [ darwin.apple_sdk.frameworks.Cocoa ];
|
2024-01-02 11:29:13 +00:00
|
|
|
|
|
|
|
vendorHash = null;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Print x509 certificate info";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "certinfo";
|
2024-01-02 11:29:13 +00:00
|
|
|
homepage = "https://github.com/pete911/certinfo";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ jakuzure ];
|
|
|
|
};
|
|
|
|
}
|