depot/third_party/nixpkgs/pkgs/tools/security/certstrap/default.nix
Default email 889482aab3 Project import generated by Copybara.
GitOrigin-RevId: f2537a505d45c31fe5d9c27ea9829b6f4c4e6ac5
2022-06-26 12:26:21 +02:00

34 lines
892 B
Nix

{ 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 ];
};
}