diff --git a/pkgs/by-name/ed/edencommon/package.nix b/pkgs/by-name/ed/edencommon/package.nix index 060ea7cc2da29..bb65dd111a0c8 100644 --- a/pkgs/by-name/ed/edencommon/package.nix +++ b/pkgs/by-name/ed/edencommon/package.nix @@ -75,6 +75,24 @@ stdenv.mkDerivation (finalAttrs: { doCheck = true; + checkPhase = '' + runHook preCheck + + # Skip flaky test on darwin + ctest -j $NIX_BUILD_CORES --output-on-failure ${ + lib.optionalString stdenv.hostPlatform.isDarwin ( + lib.escapeShellArgs [ + "--exclude-regex" + (lib.concatMapStringsSep "|" (test: "^${lib.escapeRegex test}$") [ + "ProcessInfoCache.addFromMultipleThreads" + ]) + ] + ) + } + + runHook postCheck + ''; + postPatch = '' # The CMake build requires the FBThrift Python support even though # it’s not used, presumably because of the relevant code having