Skip to content

Commit

Permalink
Add stack-nix to rawFlake.hydraJobs
Browse files Browse the repository at this point in the history
  • Loading branch information
hamishmack committed Oct 2, 2022
1 parent 127e423 commit 1ed4caa
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions overlays/haskell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -740,6 +740,7 @@ final: prev: {
rawFlake =
let
packageNames = project: builtins.attrNames (project.args.flake.packages project.hsPkgs);
checkedProject = project.appendModule { checkMaterialization = true; };
in {
# Used by:
# `nix build .#pkg-name:lib:pkg-name`
Expand Down Expand Up @@ -790,8 +791,13 @@ final: prev: {
) (packageNames project));
# Used by hydra:
hydraJobs.checks = rawFlake.checks;
# Build the plan and check it if materialized
hydraJobs.plan-nix = (project.appendModule { checkMaterialization = true; }).plan-nix;
} // final.lib.optionalAttrs (checkedProject ? plan-nix) {
# Build the plan-nix and check it if materialized
hydraJobs.plan-nix = checkedProject.plan-nix;
} // final.lib.optionalAttrs (checkedProject ? stack-nix) {
# Build the stack-nix and check it if materialized
hydraJobs.stack-nix = checkedProject.stack-nix;
} // {
# Build tools and cache tools needed for the project
hydraJobs.roots = project.roots;
hydraJobs.coverage =
Expand Down

0 comments on commit 1ed4caa

Please sign in to comment.