haskellPackages.di-core: unbreak on darwin (#314627)

One of the tests is flaky and fails sometimes on darwin, linux builds
don't seem to be affected. This change removes the failing assert on
darwin.
This commit is contained in:
Mathis 2024-05-27 10:36:13 +02:00 committed by GitHub
parent bc2096e268
commit 7042f95f88
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -325,6 +325,14 @@ self: super: ({
libraryHaskellDepends = with self; [ base bytestring jsaddle-wkwebview reflex reflex-dom-core text ]; # cabal2nix doesn't add darwin-only deps
}) super.reflex-dom;
# Remove a problematic assert, the length is sometimes 1 instead of 2 on darwin
di-core = overrideCabal (drv: {
preConfigure = ''
substituteInPlace test/Main.hs --replace \
"2 @=? List.length (List.nub (List.sort (map Di.log_time logs)))" ""
'';
}) super.di-core;
} // lib.optionalAttrs pkgs.stdenv.isAarch64 { # aarch64-darwin
# https://github.com/fpco/unliftio/issues/87