pkcs11-provider: skip softhsm on non-x86_64

softhsm is flaky and this fixes a ZHF failure:
https://github.com/softhsm/SoftHSMv2/issues/803

We use Kryoptic now, which behaves predictably, so this isn't a problem.
This commit is contained in:
Morgan Jones
2025-11-16 17:19:06 -08:00
parent 52f38bd880
commit 1df1e6166c

View File

@@ -49,7 +49,6 @@ stdenv.mkDerivation rec {
nativeCheckInputs = [ nativeCheckInputs = [
p11-kit.bin p11-kit.bin
opensc opensc
softhsm
kryoptic kryoptic
nss.tools nss.tools
gnutls gnutls
@@ -57,6 +56,13 @@ stdenv.mkDerivation rec {
expect expect
valgrind valgrind
pkcs11ProviderPython3 pkcs11ProviderPython3
]
++ lib.optionals stdenv.hostPlatform.isx86_64 [
# softokn and kryoptic are OK; softhsm is pretty flaky.
# This fails with a `pkcs11-provider:softhsm / tls - FAIL - exit status 1`.
# Considering that kryoptic is the Rust replacement, we can rely on it instead:
# https://github.com/softhsm/SoftHSMv2/issues/803
softhsm
]; ];
env = { env = {