From b9e30a0bb6d4ed9b3cc78ba9a4fdec26d6fb1807 Mon Sep 17 00:00:00 2001 From: Pui Yong Qing Date: Sat, 18 Oct 2025 23:35:38 +0800 Subject: [PATCH] sbctl: 0.17 -> 0.18 release note: https://github.com/Foxboron/sbctl/releases/tag/0.18 fixed build failure mentioned in release note: > Binary builds are broken in the CI because of the new pcsclite dependency with cgo. Work in progress to fix. --- pkgs/by-name/sb/sbctl/package.nix | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/sb/sbctl/package.nix b/pkgs/by-name/sb/sbctl/package.nix index 878aba99e4cd..bb18c7c79fb4 100644 --- a/pkgs/by-name/sb/sbctl/package.nix +++ b/pkgs/by-name/sb/sbctl/package.nix @@ -7,20 +7,22 @@ asciidoc, databasePath ? "/etc/secureboot", nix-update-script, + pkg-config, + pcsclite, }: buildGoModule rec { pname = "sbctl"; - version = "0.17"; + version = "0.18"; src = fetchFromGitHub { owner = "Foxboron"; repo = "sbctl"; tag = version; - hash = "sha256-7dCaWemkus2GHxILBEx5YvzdAmv89JfcPbqZZ6QwriI"; + hash = "sha256-Q8uQ74XvteMRcnUPu1PjLAPWt3jeI7aF4m3QMjiZJis="; }; - vendorHash = "sha256-gpHEJIbLnB0OiYB00rHK6OwrnHTHCj/tTVlUzuFjFKY="; + vendorHash = "sha256-PwLdWoC8tjdKoUAg2xvopggpgZ9WKaUslO3ZBtBah2k="; ldflags = [ "-s" @@ -32,8 +34,11 @@ buildGoModule rec { nativeBuildInputs = [ installShellFiles asciidoc + pkg-config ]; + buildInputs = [ pcsclite ]; + postBuild = '' make docs/sbctl.conf.5 docs/sbctl.8 '';