From b6ff21f7bb4b94ff4154e294955e7f84d1a9de65 Mon Sep 17 00:00:00 2001 From: Moritz Angermann Date: Tue, 12 Sep 2023 14:14:51 +0800 Subject: [PATCH] Add required job (#103) * Add required job * Update flake.nix --- flake.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index cdb65042..ecfc7e04 100644 --- a/flake.nix +++ b/flake.nix @@ -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" ];