haskellPackages.time-compat: always disable tests

These tests seem to fail due to a misconfiguration in a virtualization
environment that users often don't have control over, and upstream
wants to keep the tests, so the best thing we can do to is to disable
them.

Changed files
+12 -3
pkgs
+12
pkgs/development/haskell-modules/configuration-common.nix
···
# Deal with infinite and NaN values generated by QuickCheck-2.14.3
super.aeson;
+
time-compat = overrideCabal (drv: {
+
testFlags = drv.testFlags or [ ] ++ [
+
"-p"
+
(lib.concatStringsSep "&&" [
+
# Precision tests often fail in VMs:
+
# https://github.com/haskellari/time-compat/issues/31
+
"!/getCurrentTime/"
+
"!/taiClock/"
+
])
+
];
+
}) super.time-compat;
+
# 2023-06-28: Test error: https://hydra.nixos.org/build/225565149
orbits = dontCheck super.orbits;
-3
pkgs/development/haskell-modules/configuration-ghcjs-8.x.nix
···
temporary = dontCheck super.temporary;
-
# 2 tests fail, related to time precision
-
time-compat = dontCheck super.time-compat;
-
# TODO: The tests have a TH error, which has been fixed in ghc
# https://gitlab.haskell.org/ghc/ghc/-/issues/15481 but somehow the issue is
# still present here https://github.com/glguy/th-abstraction/issues/53