Skip to content

Commit 3c38cf4

Browse files
committed
Temporarily disable JS backend builds in CI
The JS backend builds fail due to a hash mismatch in the head.hackage.ghc.haskell.org fixed-output derivation in haskell.nix: specified: sha256-5gKLigkUTkkABGG8B9zNq8NKRIHv97K9No4kTLK/GyQ= got: sha256-AO/vHIMSIBwjbp5GY561SmnPr5qTTyBt9ruy8D3lKZI= This filters out all *-js-* shells from hydraJobs while keeping them available in devShells for local development. TODO: Remove this filter once upstream haskell.nix fixes the hash.
1 parent c7b945c commit 3c38cf4

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

flake.nix

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -198,13 +198,18 @@
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
202+
# 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;
201206
in {
202207
inherit devShells;
203-
hydraJobs = devShells // {
208+
hydraJobs = devShellsForCI // {
204209
# *-dev sentinel job. Singals all -env have been built.
205210
required = pkgs.runCommand "required dependencies (${system})" {
206211
_hydraAggregate = true;
207-
constituents = map (name: "${system}.${name}-env") (builtins.attrNames devShellsWithEvalOnLinux);
212+
constituents = map (name: "${system}.${name}-env") (builtins.attrNames devShellsWithEvalOnLinuxForCI);
208213
} "touch $out";
209214
} // (pkgs.lib.mapAttrs' (name: drv:
210215
pkgs.lib.nameValuePair "${name}-env" (
@@ -251,9 +256,9 @@
251256
license = pkgs.lib.licenses.asl20;
252257
platforms = pkgs.lib.platforms.unix;
253258
};
254-
})) devShells)
259+
})) devShellsForCI)
255260
// (pkgs.lib.mapAttrs' (name: drv:
256-
pkgs.lib.nameValuePair "${name}-plans" drv.plans) devShells);
261+
pkgs.lib.nameValuePair "${name}-plans" drv.plans) devShellsForCI);
257262
packages.cabalProjectLocal-static = (import ./quirks.nix { pkgs = static-pkgs; static = true; }).template;
258263
packages.cabalProjectLocal-cross-js = (import ./quirks.nix { pkgs = js-pkgs; }).template;
259264
packages.cabalProjectLocal-cross-windows = (import ./quirks.nix { pkgs = windows-pkgs; }).template;

0 commit comments

Comments
 (0)