Skip to content

Commit

Permalink
checks: add system attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
DavHau authored and mergify[bot] committed Oct 17, 2023
1 parent 72e4fd9 commit b10f349
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion modules/flake-parts/examples.nix
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ in {
}
];
});
in {

# map all modules in /examples to a package output in the flake.
checks =
lib.optionalAttrs
Expand All @@ -132,5 +132,11 @@ in {
(importFlakeSmall (self + /examples/dream2nix-repo-flake-pdm/flake.nix)).packages.${system}.requests;
}
);

# work around a bug in nix-fast-build / nix-eval jobs
# TODO: remove this
checksWithSystem = lib.mapAttrs (_: drv: drv // {inherit system;}) checks;
in {
checks = checksWithSystem;
};
}

0 comments on commit b10f349

Please sign in to comment.