nixpkgs/pkgs/tools/security/certinfo/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

31 lines
803 B
Nix

{ 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 ];
vendorHash = null;
meta = with lib; {
description = "Print x509 certificate info";
mainProgram = "certinfo";
homepage = "https://github.com/pete911/certinfo";
license = licenses.mit;
maintainers = with maintainers; [ jakuzure ];
};
}