|
198 | 198 | # scripts for other platforms. That way a linux GHA can download the |
199 | 199 | # cached files without needing access to the actual build platform. |
200 | 200 | 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; |
201 | 206 | in { |
202 | 207 | inherit devShells; |
203 | | - hydraJobs = devShells // { |
| 208 | + hydraJobs = devShellsForCI // { |
204 | 209 | # *-dev sentinel job. Singals all -env have been built. |
205 | 210 | required = pkgs.runCommand "required dependencies (${system})" { |
206 | 211 | _hydraAggregate = true; |
207 | | - constituents = map (name: "${system}.${name}-env") (builtins.attrNames devShellsWithEvalOnLinux); |
| 212 | + constituents = map (name: "${system}.${name}-env") (builtins.attrNames devShellsWithEvalOnLinuxForCI); |
208 | 213 | } "touch $out"; |
209 | 214 | } // (pkgs.lib.mapAttrs' (name: drv: |
210 | 215 | pkgs.lib.nameValuePair "${name}-env" ( |
|
251 | 256 | license = pkgs.lib.licenses.asl20; |
252 | 257 | platforms = pkgs.lib.platforms.unix; |
253 | 258 | }; |
254 | | - })) devShells) |
| 259 | + })) devShellsForCI) |
255 | 260 | // (pkgs.lib.mapAttrs' (name: drv: |
256 | | - pkgs.lib.nameValuePair "${name}-plans" drv.plans) devShells); |
| 261 | + pkgs.lib.nameValuePair "${name}-plans" drv.plans) devShellsForCI); |
257 | 262 | packages.cabalProjectLocal-static = (import ./quirks.nix { pkgs = static-pkgs; static = true; }).template; |
258 | 263 | packages.cabalProjectLocal-cross-js = (import ./quirks.nix { pkgs = js-pkgs; }).template; |
259 | 264 | packages.cabalProjectLocal-cross-windows = (import ./quirks.nix { pkgs = windows-pkgs; }).template; |
|
0 commit comments