diff --git a/pkgs/by-name/ca/cadical/package.nix b/pkgs/by-name/ca/cadical/package.nix index 76fd676fba51..fde53b371fb5 100644 --- a/pkgs/by-name/ca/cadical/package.nix +++ b/pkgs/by-name/ca/cadical/package.nix @@ -58,9 +58,15 @@ stdenv.mkDerivation rec { enableParallelBuilding = true; # fix static build - postPatch = '' - substituteInPlace makefile.in --replace-fail "ar rc" '$(AR) rc' - ''; + postPatch = + '' + substituteInPlace makefile.in --replace-fail "ar rc" '$(AR) rc' + '' + # Racy/flaky tests that sometimes spontaneously combust on darwin. + + lib.optionalString (stdenv.hostPlatform.isDarwin && (lib.versionAtLeast version "2.1.1")) '' + substituteInPlace test/api/run.sh --replace-fail 'run parcompwrite' "" + substituteInPlace test/api/run.sh --replace-fail 'run example_tracer' "" + ''; # the configure script is not generated by autotools and does not accept the # arguments that the default configurePhase passes like --prefix and --libdir