From a1b3d6679e0ebdbb7e86e0642d8bfee898c3035e Mon Sep 17 00:00:00 2001 From: Moraxyc Date: Fri, 12 Sep 2025 10:17:26 +0800 Subject: [PATCH] step-ca: backport patch to fix broken test --- pkgs/by-name/st/step-ca/package.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pkgs/by-name/st/step-ca/package.nix b/pkgs/by-name/st/step-ca/package.nix index 1498fe059281..7407358db680 100644 --- a/pkgs/by-name/st/step-ca/package.nix +++ b/pkgs/by-name/st/step-ca/package.nix @@ -2,6 +2,7 @@ lib, stdenv, fetchFromGitHub, + fetchpatch2, buildGoModule, coreutils, pcsclite, @@ -26,6 +27,16 @@ buildGoModule rec { hash = "sha256-ZIpsSNdQVkelo5b3H03N8qToHU7z+lalAE7Ur6m2YwY="; }; + patches = [ + # fix broken test TestHandler_RevokeCert + # https://github.com/smallstep/certificates/pull/2370 + # TODO: remove at next release + (fetchpatch2 { + url = "https://github.com/smallstep/certificates/commit/b7e59c97f3b8a95a24153aeb85959118953f2bb4.patch?full_index=1"; + hash = "sha256-GKGKUj4hpS4jo6sMvUhnD3BeE+f5vnxY5tK0a2pwpNM="; + }) + ]; + vendorHash = "sha256-gGPrrl5J8UrjUpof2DaSs1fAQsMSsyAMlC67h5V75+k="; ldflags = [