File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -740,6 +740,7 @@ final: prev: {
740
740
rawFlake =
741
741
let
742
742
packageNames = project : builtins . attrNames ( project . args . flake . packages project . hsPkgs ) ;
743
+ checkedProject = project . appendModule { checkMaterialization = true ; } ;
743
744
in {
744
745
# Used by:
745
746
# `nix build .#pkg-name:lib:pkg-name`
@@ -790,8 +791,13 @@ final: prev: {
790
791
) ( packageNames project ) ) ;
791
792
# Used by hydra:
792
793
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
+ } // {
795
801
# Build tools and cache tools needed for the project
796
802
hydraJobs . roots = project . roots ;
797
803
hydraJobs . coverage =
You can’t perform that action at this time.
0 commit comments