depot/third_party/nixpkgs/pkgs/tools/security/minica/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

35 lines
938 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "minica";
version = "1.1.0";
src = fetchFromGitHub {
owner = "jsha";
repo = "minica";
rev = "v${version}";
sha256 = "sha256-YUeP3xBoZzonJYfEAOWZYCTFwOxFWySW7ezvpMLNZ1I=";
};
vendorHash = null;
ldflags = [ "-s" "-w" ];
meta = with lib; {
description = "A simple tool for generating self signed certificates";
mainProgram = "minica";
longDescription = ''
Minica is a simple CA intended for use in situations where the CA operator
also operates each host where a certificate will be used. It automatically
generates both a key and a certificate when asked to produce a
certificate.
'';
homepage = "https://github.com/jsha/minica/";
changelog = "https://github.com/jsha/minica/releases/tag/${src.rev}";
license = licenses.mit;
maintainers = with maintainers; [ m1cr0man ];
};
}