Skip to content

Commit 8c3a041

Browse files
committed
Also filter Windows builds from CI due to head.hackage hash mismatch
Both JS and Windows cross-compilation builds use head.hackage which has a stale hash in the current haskell.nix. Filter both from hydraJobs until upstream fixes the issue.
1 parent 3c38cf4 commit 8c3a041

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

flake.nix

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -198,11 +198,12 @@
198198
# scripts for other platforms. That way a linux GHA can download the
199199
# cached files without needing access to the actual build platform.
200200
devShellsWithEvalOnLinux = devShellsWithToolsModule { evalSystem = "x86_64-linux"; };
201-
# Filter out JS shells from hydraJobs due to head.hackage hash mismatch in haskell.nix
201+
# Filter out JS and Windows shells from hydraJobs due to head.hackage hash mismatch in haskell.nix
202202
# TODO: Remove this filter once upstream haskell.nix fixes the head.hackage hash
203-
filterNonJS = pkgs.lib.filterAttrs (name: _: !(pkgs.lib.hasInfix "-js" name));
204-
devShellsForCI = filterNonJS devShells;
205-
devShellsWithEvalOnLinuxForCI = filterNonJS devShellsWithEvalOnLinux;
203+
filterBroken = pkgs.lib.filterAttrs (name: _:
204+
!(pkgs.lib.hasInfix "-js" name) && !(pkgs.lib.hasInfix "-windows" name));
205+
devShellsForCI = filterBroken devShells;
206+
devShellsWithEvalOnLinuxForCI = filterBroken devShellsWithEvalOnLinux;
206207
in {
207208
inherit devShells;
208209
hydraJobs = devShellsForCI // {

0 commit comments

Comments
 (0)