yubihsm-shell: fix compile

Apply github.com/Yubico/yubihsm-shell/pull/493.
This commit is contained in:
Morgan Jones
2025-10-16 01:16:23 -07:00
parent e339a83822
commit 621581ee42
@@ -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 \