mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 08:43:06 +00:00
5356420466
$ find -type f -name '*.nix' -print0 | xargs -P "$(nproc)" -0 sed -i \ -e 's!with lib.maintainers; \[ *\];![ ];!' \ -e 's!with maintainers; \[ *\];![ ];!'
36 lines
946 B
Nix
36 lines
946 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "certstrap";
|
|
version = "1.3.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "square";
|
|
repo = "certstrap";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-mbZtomR8nnawXr3nGVSEuVObe79M1CqTlYN/aEpKmcU=";
|
|
};
|
|
|
|
vendorHash = "sha256-r7iYhTmFKTjfv11fEerC72M7JBp64rWfbkoTKzObNqM=";
|
|
|
|
subPackages = [ "." ];
|
|
|
|
ldflags = [ "-X main.release=${version}" ];
|
|
|
|
meta = with lib; {
|
|
description = "Tools to bootstrap CAs, certificate requests, and signed certificates";
|
|
mainProgram = "certstrap";
|
|
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 = [ ];
|
|
};
|
|
}
|