cfssl: 1.6.1 -> 1.6.2

https://github.com/cloudflare/cfssl/releases/tag/v1.6.2
This commit is contained in:
zowoq 2022-08-27 14:43:25 +10:00
parent e683858f46
commit 721430fe18

View File

@ -1,14 +1,14 @@
{ lib, buildGoModule, fetchFromGitHub, go-rice }: { lib, buildGoModule, fetchFromGitHub, nixosTests }:
buildGoModule rec { buildGoModule rec {
pname = "cfssl"; pname = "cfssl";
version = "1.6.1"; version = "1.6.2";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "cloudflare"; owner = "cloudflare";
repo = "cfssl"; repo = "cfssl";
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-QY04MecjQTmrkPkWcLkXJWErtaw7esb6GnPIKGTJL34="; sha256 = "sha256-cyriV6z904QlkDlP80CSpakISJn7S81/2fcspAf5uk4=";
}; };
subPackages = [ subPackages = [
@ -26,19 +26,13 @@ buildGoModule rec {
doCheck = false; doCheck = false;
nativeBuildInputs = [ go-rice ];
preBuild = ''
pushd cli/serve
rice embed-go
popd
'';
ldflags = [ ldflags = [
"-s" "-w" "-s" "-w"
"-X github.com/cloudflare/cfssl/cli/version.version=v${version}" "-X github.com/cloudflare/cfssl/cli/version.version=v${version}"
]; ];
passthru.tests = { inherit (nixosTests) cfssl; };
meta = with lib; { meta = with lib; {
homepage = "https://cfssl.org/"; homepage = "https://cfssl.org/";
description = "Cloudflare's PKI and TLS toolkit"; description = "Cloudflare's PKI and TLS toolkit";