Skip to content

Commit

Permalink
Add required job (#103)
Browse files Browse the repository at this point in the history
* Add required job

* Update flake.nix
  • Loading branch information
angerman authored Sep 12, 2023
1 parent bd723cf commit b6ff21f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,13 @@
devShellsWithEvalOnLinux = devShellsWithToolsModule { evalSystem = "x86_64-linux"; };
in {
inherit devShells;
hydraJobs = devShells //
(pkgs.lib.mapAttrs' (name: drv:
hydraJobs = devShells // {
# *-dev sentinel job. Singals all -env have been built.
required = pkgs.runCommand "test-dependencies" {
_hydraAggregate = true;
constituents = map (name: "${system}.${name}-env") (builtins.attrNames devShellsWithEvalOnLinux);
} "touch $out";
} // (pkgs.lib.mapAttrs' (name: drv:
pkgs.lib.nameValuePair "${name}-env" (
let env = pkgs.runCommand "${name}-env.sh" {
requiredSystemFeatures = [ "recursive-nix" ];
Expand Down

0 comments on commit b6ff21f

Please sign in to comment.