1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 13:41:26 +00:00
nixpkgs/pkgs/tools/security/cfssl/default.nix

35 lines
1 KiB
Nix
Raw Normal View History

{ stdenv, buildGoPackage, fetchFromGitHub, fetchpatch }:
2017-05-28 17:33:22 +01:00
buildGoPackage rec {
pname = "cfssl";
2018-07-26 10:20:36 +01:00
version = "1.3.2";
2017-05-28 17:33:22 +01:00
goPackagePath = "github.com/cloudflare/cfssl";
src = fetchFromGitHub {
owner = "cloudflare";
repo = "cfssl";
2018-07-26 10:20:36 +01:00
rev = version;
sha256 = "0j2gz2vl2pf7ir7sc7jrwmjnr67hk4qhxw09cjx132jbk337jc9x";
2017-05-28 17:33:22 +01:00
};
# The following patch ensures that the auth-key decoder doesn't break,
# if the auth-key file contains leading or trailing whitespaces.
# https://github.com/cloudflare/cfssl/pull/923 is merged
# remove patch when it becomes part of a release.
patches = [
(fetchpatch {
url = "https://github.com/cloudflare/cfssl/commit/7e13f60773c96644db9dd8d342d42fe3a4d26f36.patch";
sha256 = "1z2v2i8yj7qpj8zj5f2q739nhrr9s59jwzfzk52wfgssl4vv5mn5";
})
];
2017-05-28 17:33:22 +01:00
meta = with stdenv.lib; {
homepage = https://cfssl.org/;
description = "Cloudflare's PKI and TLS toolkit";
license = licenses.bsd2;
maintainers = with maintainers; [ mbrgm ];
platforms = platforms.all;
2017-05-28 17:33:22 +01:00
};
}