2022-06-12 13:59:56 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
2017-06-28 21:15:16 +00:00
|
|
|
|
2022-06-12 13:59:56 +00:00
|
|
|
buildGoModule rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "certstrap";
|
2023-02-17 22:40:28 +00:00
|
|
|
version = "1.3.0";
|
2017-06-28 21:15:16 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "square";
|
|
|
|
repo = "certstrap";
|
|
|
|
rev = "v${version}";
|
2023-02-17 22:40:28 +00:00
|
|
|
sha256 = "sha256-mbZtomR8nnawXr3nGVSEuVObe79M1CqTlYN/aEpKmcU=";
|
2017-06-28 21:15:16 +00:00
|
|
|
};
|
|
|
|
|
2023-02-17 22:40:28 +00:00
|
|
|
vendorSha256 = "sha256-r7iYhTmFKTjfv11fEerC72M7JBp64rWfbkoTKzObNqM=";
|
2022-06-12 13:59:56 +00:00
|
|
|
|
|
|
|
subPackages = [ "." ];
|
|
|
|
|
|
|
|
ldflags = [ "-X main.release=${version}" ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-06-28 21:15:16 +00:00
|
|
|
description = "Tools to bootstrap CAs, certificate requests, and signed certificates";
|
2022-06-12 13:59:56 +00:00
|
|
|
longDescription = ''
|
|
|
|
A simple certificate manager written in Go, to bootstrap your own
|
|
|
|
certificate authority and public key infrastructure. Adapted from etcd-ca.
|
|
|
|
'';
|
|
|
|
homepage = "https://github.com/square/certstrap";
|
|
|
|
changelog = "https://github.com/square/certstrap/releases/tag/${src.rev}";
|
2017-06-28 21:15:16 +00:00
|
|
|
license = licenses.asl20;
|
2022-06-22 22:49:35 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2017-06-28 21:15:16 +00:00
|
|
|
};
|
|
|
|
}
|