Skip to content

Commit 0947f3f

Browse files
committed
Fix tests
1 parent 709f38c commit 0947f3f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/default.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,8 @@ let
202202
coverage-golden = callTest ./coverage-golden { inherit compiler-nix-name;};
203203
coverage-no-libs = callTest ./coverage-no-libs { inherit compiler-nix-name; };
204204
snapshots = callTest ./snapshots {};
205-
} // lib.optionalAttrs (!stdenv.hostPlatform.isGhcjs && !(__elem compiler-nix-name ["ghc8101" "ghc8102" "ghc8103" "ghc8104" "ghc810420210212"])) {
206-
# Pandoc does not build with ghcjs or ghc 8.10 yet (lookup-sha256 and fully-static build pandoc)
205+
} // lib.optionalAttrs (!stdenv.hostPlatform.isGhcjs && builtins.compareVersions pkgs.haskell-nix.compiler.${compiler-nix-name}.version "8.10" < 0) {
206+
# Tha version of pandoc used in this test does not build with ghcjs or ghc 8.10 (lookup-sha256 and fully-static build pandoc)
207207
lookup-sha256 = callTest ./lookup-sha256 { inherit compiler-nix-name; };
208208
# fully-static = callTest ./fully-static { inherit (pkgs) buildPackages; };
209209
} // lib.optionalAttrs (!pkgs.haskell-nix.haskellLib.isCrossHost) {

0 commit comments

Comments
 (0)