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-09-13 04:44:46 +00:00
|
|
|
vendorHash = "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";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "certstrap";
|
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;
|
2024-07-28 14:44:11 +00:00
|
|
|
maintainers = [ ];
|
2017-06-28 21:15:16 +00:00
|
|
|
};
|
|
|
|
}
|