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