cadical: fix darwin

Disable flaky tests on darwin.
This commit is contained in:
Sergei Zimmerman
2025-01-12 00:07:17 +03:00
parent 037cf30dc6
commit 792fff716e
+9 -3
View File
@@ -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