nixpkgs/pkgs/tools/security/certstrap/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
946 B
Nix
Raw Normal View History

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 {
pname = "certstrap";
version = "1.3.0";
2017-06-28 21:15:16 +00:00
src = fetchFromGitHub {
owner = "square";
repo = "certstrap";
rev = "v${version}";
sha256 = "sha256-mbZtomR8nnawXr3nGVSEuVObe79M1CqTlYN/aEpKmcU=";
2017-06-28 21:15:16 +00:00
};
vendorHash = "sha256-r7iYhTmFKTjfv11fEerC72M7JBp64rWfbkoTKzObNqM=";
2022-06-12 13:59:56 +00:00
subPackages = [ "." ];
ldflags = [ "-X main.release=${version}" ];
meta = with lib; {
2017-06-28 21:15:16 +00:00
description = "Tools to bootstrap CAs, certificate requests, and signed certificates";
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;
maintainers = [ ];
2017-06-28 21:15:16 +00:00
};
}