From 212aaa22fbe6e003c91ebb4d61666f17c8bcaa0a Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Thu, 6 Feb 2025 12:09:31 +0100 Subject: [PATCH] tpm2-tss: disable tests for static builds --- pkgs/development/libraries/tpm2-tss/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/tpm2-tss/default.nix b/pkgs/development/libraries/tpm2-tss/default.nix index 11ffdc374d64..b8b68919c807 100644 --- a/pkgs/development/libraries/tpm2-tss/default.nix +++ b/pkgs/development/libraries/tpm2-tss/default.nix @@ -147,7 +147,10 @@ stdenv.mkDerivation rec { doCheck = false; doInstallCheck = - stdenv.buildPlatform.canExecute stdenv.hostPlatform && !stdenv.hostPlatform.isDarwin; + stdenv.buildPlatform.canExecute stdenv.hostPlatform + && !stdenv.hostPlatform.isDarwin + # Tests rely on mocking, which can't work with static libs. + && !stdenv.hostPlatform.isStatic; # Since we rewrote the load path in the dynamic loader for the TCTI # The various tcti implementation should be placed in their target directory # before we could run tests, so we make turn checkPhase into installCheckPhase