diff --git a/pkgs/by-name/fo/folly/package.nix b/pkgs/by-name/fo/folly/package.nix index 9f029393134f..22ba13014094 100644 --- a/pkgs/by-name/fo/folly/package.nix +++ b/pkgs/by-name/fo/folly/package.nix @@ -116,7 +116,13 @@ stdenv.mkDerivation (finalAttrs: { ] ); - doCheck = true; + # https://github.com/facebook/folly/blob/main/folly/DiscriminatedPtr.h + # error: #error "DiscriminatedPtr is x64, arm64, ppc64 and riscv64 specific code." + doCheck = + stdenv.hostPlatform.isx86_64 + || stdenv.hostPlatform.isAarch64 + || stdenv.hostPlatform.isPower64 + || stdenv.hostPlatform.isRiscV64; patches = [ # The base template for std::char_traits has been removed in LLVM 19