1{ lib
2, buildGoModule
3, fetchFromGitHub
4}:
5
6buildGoModule rec {
7 pname = "certstrap";
8 version = "1.3.0";
9
10 src = fetchFromGitHub {
11 owner = "square";
12 repo = "certstrap";
13 rev = "v${version}";
14 sha256 = "sha256-mbZtomR8nnawXr3nGVSEuVObe79M1CqTlYN/aEpKmcU=";
15 };
16
17 vendorSha256 = "sha256-r7iYhTmFKTjfv11fEerC72M7JBp64rWfbkoTKzObNqM=";
18
19 subPackages = [ "." ];
20
21 ldflags = [ "-X main.release=${version}" ];
22
23 meta = with lib; {
24 description = "Tools to bootstrap CAs, certificate requests, and signed certificates";
25 longDescription = ''
26 A simple certificate manager written in Go, to bootstrap your own
27 certificate authority and public key infrastructure. Adapted from etcd-ca.
28 '';
29 homepage = "https://github.com/square/certstrap";
30 changelog = "https://github.com/square/certstrap/releases/tag/${src.rev}";
31 license = licenses.asl20;
32 maintainers = with maintainers; [ ];
33 };
34}