From 32fdb8fc1884322ff43c68c1708e7770a95eb000 Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Mon, 6 Oct 2025 00:28:26 +0200 Subject: [PATCH] assimp: disable check on darwin --- pkgs/by-name/as/assimp/package.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/as/assimp/package.nix b/pkgs/by-name/as/assimp/package.nix index 183254f19388..a28053da6644 100644 --- a/pkgs/by-name/as/assimp/package.nix +++ b/pkgs/by-name/as/assimp/package.nix @@ -34,12 +34,17 @@ stdenv.mkDerivation (finalAttrs: { cmakeFlags = [ (lib.cmakeBool "ASSIMP_BUILD_ASSIMP_TOOLS" true) + (lib.cmakeBool "ASSIMP_BUILD_TESTS" finalAttrs.finalPackage.doCheck) ]; # Some matrix tests fail on non-86_64-linux: # https://github.com/assimp/assimp/issues/6246 # https://github.com/assimp/assimp/issues/6247 - doCheck = !(stdenv.hostPlatform.isLinux && !stdenv.hostPlatform.isx86_64); + # On Darwin, the bundled googletest is not compatible with Clang 21. + # contrib/googletest/googletest/include/gtest/gtest-printers.h:498:35: + # error: implicit conversion from 'char16_t' to 'char32_t' may change the meaning of the represented code unit + # [-Werror,-Wcharacter-conversion] + doCheck = stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isx86_64; checkPhase = '' runHook preCheck bin/unit