nixpkgs/pkgs/tools/security/minica/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
912 B
Nix
Raw Normal View History

2022-06-14 22:37:38 +00:00
{ lib
, buildGoModule
, fetchFromGitHub
}:
2022-06-14 22:37:38 +00:00
buildGoModule rec {
pname = "minica";
version = "1.0.2";
src = fetchFromGitHub {
owner = "jsha";
repo = "minica";
rev = "v${version}";
2022-06-14 22:37:38 +00:00
sha256 = "sha256-3p6rUFFiWXhX9BBbxqWxRoyRceexvNnqcFCyNi5HoaA=";
};
vendorSha256 = null;
2022-06-14 22:37:38 +00:00
ldflags = [ "-s" "-w" ];
meta = with lib; {
description = "A simple tool for generating self signed certificates";
longDescription = ''
2022-06-14 22:37:38 +00:00
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/";
2022-06-14 22:37:38 +00:00
changelog = "https://github.com/jsha/minica/releases/tag/${src.rev}";
license = licenses.mit;
maintainers = with maintainers; [ m1cr0man ];
};
}