3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/security/certmgr/default.nix

34 lines
929 B
Nix
Raw Normal View History

{ stdenv, buildGoPackage, fetchFromGitHub, fetchpatch }:
2018-08-03 15:52:15 +01:00
buildGoPackage rec {
version = "1.6.1";
name = "certmgr-${version}";
goPackagePath = "github.com/cloudflare/certmgr/";
src = fetchFromGitHub {
owner = "cloudflare";
repo = "certmgr";
rev = "v${version}";
sha256 = "1ky2pw1wxrb2fxfygg50h0mid5l023x6xz9zj5754a023d01qqr2";
};
# The following patch makes it possible to use a self-signed x509 cert
# for the cfssl apiserver.
# TODO: remove patch when PR is merged.
patches = [
(fetchpatch {
url = "https://github.com/cloudflare/certmgr/pull/51.patch";
sha256 = "0jhsw159d2mgybvbbn6pmvj4yqr5cwcal5fjwkcn9m4f4zlb6qrs";
})
];
2018-08-03 15:52:15 +01:00
meta = with stdenv.lib; {
homepage = https://cfssl.org/;
description = "Cloudflare's certificate manager";
platforms = platforms.linux;
license = licenses.bsd2;
maintainers = with maintainers; [ johanot srhb ];
};
}