mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-24 13:05:08 +00:00
Merge pull request #177407 from azahi/certstrap
certstrap: use buildGoModule
This commit is contained in:
commit
1ff4dae7f8
@ -1,21 +1,33 @@
|
||||
{ lib, buildGoPackage, fetchFromGitHub }:
|
||||
{ lib
|
||||
, buildGoModule
|
||||
, fetchFromGitHub
|
||||
}:
|
||||
|
||||
buildGoPackage rec {
|
||||
buildGoModule rec {
|
||||
pname = "certstrap";
|
||||
version = "1.2.0";
|
||||
|
||||
goPackagePath = "github.com/square/certstrap";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "square";
|
||||
repo = "certstrap";
|
||||
rev = "v${version}";
|
||||
sha256 = "1ymchnn7c9g3pq7rw4lrwsd6z3wfjx90g7qgrw6r5hssl77mnscj";
|
||||
sha256 = "sha256-kmlbz6Faw5INzw+fB1KXjo9vmuaZEp4PvuMldqyFrPo=";
|
||||
};
|
||||
|
||||
vendorSha256 = null;
|
||||
|
||||
subPackages = [ "." ];
|
||||
|
||||
ldflags = [ "-X main.release=${version}" ];
|
||||
|
||||
meta = with lib; {
|
||||
inherit (src.meta) homepage;
|
||||
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 ];
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user