about summary refs log tree commit diff
path: root/pkgs/tools/security/certstrap/default.nix
blob: 9edd8b3884f8b0638062aca0e74d463a6400fd34 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{ lib
, buildGoModule
, fetchFromGitHub
}:

buildGoModule rec {
  pname = "certstrap";
  version = "1.2.0";

  src = fetchFromGitHub {
    owner = "square";
    repo = "certstrap";
    rev = "v${version}";
    sha256 = "sha256-kmlbz6Faw5INzw+fB1KXjo9vmuaZEp4PvuMldqyFrPo=";
  };

  vendorSha256 = null;

  subPackages = [ "." ];

  ldflags = [ "-X main.release=${version}" ];

  meta = with lib; {
    description = "Tools to bootstrap CAs, certificate requests, and signed certificates";
    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}";
    license = licenses.asl20;
    maintainers = with maintainers; [ volth ];
  };
}