Merge pull request #209543 from trofi/tasty-fix-on-i686

pkgsi686Linux.haskellPackages.tasty: pull missing unbounded-delays pa…
This commit is contained in:
maralorn 2023-01-07 22:29:40 +01:00 committed by GitHub
commit 968cfdab4a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -359,6 +359,17 @@ self: super: builtins.intersectAttrs super {
preCheck = ''export PATH="$PWD/dist/build/ghcide:$PATH"''; preCheck = ''export PATH="$PWD/dist/build/ghcide:$PATH"'';
}) super.ghcide; }) super.ghcide;
# At least on 1.3.4 version on 32-bit architectures tasty requires
# unbounded-delays via .cabal file conditions.
tasty = overrideCabal (drv: {
libraryHaskellDepends =
(drv.libraryHaskellDepends or [])
++ lib.optionals (!(pkgs.stdenv.hostPlatform.isAarch64
|| pkgs.stdenv.hostPlatform.isx86_64)) [
self.unbounded-delays
];
}) super.tasty;
tasty-discover = overrideCabal (drv: { tasty-discover = overrideCabal (drv: {
# Depends on itself for testing # Depends on itself for testing
preBuild = '' preBuild = ''