Skip to content

Commit fb6b7c6

Browse files
Try #1731:
2 parents 127e423 + 1ed4caa commit fb6b7c6

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

overlays/haskell.nix

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -740,6 +740,7 @@ final: prev: {
740740
rawFlake =
741741
let
742742
packageNames = project: builtins.attrNames (project.args.flake.packages project.hsPkgs);
743+
checkedProject = project.appendModule { checkMaterialization = true; };
743744
in {
744745
# Used by:
745746
# `nix build .#pkg-name:lib:pkg-name`
@@ -790,8 +791,13 @@ final: prev: {
790791
) (packageNames project));
791792
# Used by hydra:
792793
hydraJobs.checks = rawFlake.checks;
793-
# Build the plan and check it if materialized
794-
hydraJobs.plan-nix = (project.appendModule { checkMaterialization = true; }).plan-nix;
794+
} // final.lib.optionalAttrs (checkedProject ? plan-nix) {
795+
# Build the plan-nix and check it if materialized
796+
hydraJobs.plan-nix = checkedProject.plan-nix;
797+
} // final.lib.optionalAttrs (checkedProject ? stack-nix) {
798+
# Build the stack-nix and check it if materialized
799+
hydraJobs.stack-nix = checkedProject.stack-nix;
800+
} // {
795801
# Build tools and cache tools needed for the project
796802
hydraJobs.roots = project.roots;
797803
hydraJobs.coverage =

0 commit comments

Comments
 (0)