2022-06-14 22:37:38 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
2020-06-19 19:27:46 +00:00
|
|
|
|
2022-06-14 22:37:38 +00:00
|
|
|
buildGoModule rec {
|
2020-06-19 19:27:46 +00:00
|
|
|
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=";
|
2020-06-19 19:27:46 +00:00
|
|
|
};
|
|
|
|
|
2023-01-21 16:35:00 +00:00
|
|
|
vendorSha256 = null;
|
2022-06-14 22:37:38 +00:00
|
|
|
|
|
|
|
ldflags = [ "-s" "-w" ];
|
2020-06-19 19:27:46 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2020-10-11 05:55:05 +00:00
|
|
|
description = "A simple tool for generating self signed certificates";
|
2020-06-19 19:27:46 +00:00
|
|
|
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.
|
2020-06-19 19:27:46 +00:00
|
|
|
'';
|
|
|
|
homepage = "https://github.com/jsha/minica/";
|
2022-06-14 22:37:38 +00:00
|
|
|
changelog = "https://github.com/jsha/minica/releases/tag/${src.rev}";
|
2020-06-19 19:27:46 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ m1cr0man ];
|
|
|
|
};
|
|
|
|
}
|