From a6894fba4218663ab455cbaec645cd3a4d718a93 Mon Sep 17 00:00:00 2001 From: Colin Date: Thu, 20 Jun 2024 13:19:58 +0000 Subject: [PATCH] xsimd: fix cross compilation, enable strictDeps --- pkgs/development/libraries/xsimd/default.nix | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/pkgs/development/libraries/xsimd/default.nix b/pkgs/development/libraries/xsimd/default.nix index 019b3afbefc8..4e4583af6917 100644 --- a/pkgs/development/libraries/xsimd/default.nix +++ b/pkgs/development/libraries/xsimd/default.nix @@ -28,10 +28,17 @@ stdenv.mkDerivation (finalAttrs: { ./disable-test_error_gamma.patch ]; + # strictDeps raises the chance that xsimd will be able to be cross compiled + strictDeps = true; + nativeBuildInputs = [ cmake ]; + buildInputs = [ + doctest + ]; + cmakeFlags = [ # Always build the tests, even if not running them, because testing whether # they can be built is a test in itself. @@ -39,9 +46,6 @@ stdenv.mkDerivation (finalAttrs: { ]; doCheck = true; - nativeCheckInputs = [ - doctest - ]; checkTarget = "xtest"; meta = with lib; {