summaryrefslogtreecommitdiff
path: root/ci.nix
diff options
context:
space:
mode:
Diffstat (limited to 'ci.nix')
-rw-r--r--ci.nix23
1 files changed, 14 insertions, 9 deletions
diff --git a/ci.nix b/ci.nix
index f05fbed..0dda2c0 100644
--- a/ci.nix
+++ b/ci.nix
@@ -14,15 +14,20 @@
(lib.filterAttrs (_: v: v.pkgs.system == system))
(lib.mapAttrsToList (_: v: v.config.system.build.toplevel or v.activationPackage))
];
+
+ required = lib.concatLists [
+ systems
+ # and other checks
+ (builtins.attrValues (builtins.removeAttrs config.checks ["ciGate"]))
+ ];
+
+ paths =
+ builtins.foldl' (
+ acc: deriv:
+ acc // {${deriv.pname or deriv.name} = deriv.path or deriv.outPath;}
+ ) {}
+ required;
in {
- checks = {
- ciGate = pkgs.runCommand "ci-gate" {
- nativeBuildInputs = lib.concatLists [
- systems
- # and other checks
- (builtins.attrValues (builtins.removeAttrs config.checks ["ciGate"]))
- ];
- } "touch $out";
- };
+ packages.ciGate = pkgs.linkFarm "ci-gate" paths;
};
}