From 621581ee425442659a3d5c049ea2e58352d217e6 Mon Sep 17 00:00:00 2001 From: Morgan Jones Date: Thu, 16 Oct 2025 01:16:23 -0700 Subject: [PATCH 1/2] yubihsm-shell: fix compile Apply github.com/Yubico/yubihsm-shell/pull/493. --- pkgs/by-name/yu/yubihsm-shell/package.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/by-name/yu/yubihsm-shell/package.nix b/pkgs/by-name/yu/yubihsm-shell/package.nix index 4f9354ea4316..b57b9f9d728b 100644 --- a/pkgs/by-name/yu/yubihsm-shell/package.nix +++ b/pkgs/by-name/yu/yubihsm-shell/package.nix @@ -2,6 +2,7 @@ lib, stdenv, fetchFromGitHub, + fetchpatch, cmake, openssl, libusb1, @@ -25,6 +26,13 @@ stdenv.mkDerivation rec { hash = "sha256-ymGS35kjhNlFee3FEXF8n6Jm7NVaynjv+lpix6F75BQ="; }; + patches = [ + (fetchpatch { + url = "https://github.com/Yubico/yubihsm-shell/pull/493.patch"; + hash = "sha256-mM4ef1GV7BJT+EZ8B7+ejleTocglhxCWO/RKHZN69GE="; + }) + ]; + postPatch = '' # Can't find libyubihsm at runtime because of dlopen() in C code substituteInPlace lib/yubihsm.c \ From 983d3bd889ad8c829882a1b297cf021b33d0c3e6 Mon Sep 17 00:00:00 2001 From: Morgan Jones Date: Thu, 16 Oct 2025 01:17:02 -0700 Subject: [PATCH 2/2] yubihsm-shell: add numinit as maintainer --- pkgs/by-name/yu/yubihsm-shell/package.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/yu/yubihsm-shell/package.nix b/pkgs/by-name/yu/yubihsm-shell/package.nix index b57b9f9d728b..3261fc7c0d7b 100644 --- a/pkgs/by-name/yu/yubihsm-shell/package.nix +++ b/pkgs/by-name/yu/yubihsm-shell/package.nix @@ -73,7 +73,10 @@ stdenv.mkDerivation rec { meta = with lib; { description = "Thin wrapper around libyubihsm providing both an interactive and command-line interface to a YubiHSM"; homepage = "https://github.com/Yubico/yubihsm-shell"; - maintainers = with maintainers; [ matthewcroughan ]; + maintainers = with maintainers; [ + matthewcroughan + numinit + ]; license = licenses.asl20; platforms = platforms.all; };