summaryrefslogtreecommitdiff
path: root/ci.nix
diff options
context:
space:
mode:
authorseth <[email protected]>2023-12-13 15:39:09 -0500
committerseth <[email protected]>2023-12-13 15:42:21 -0500
commitfaa11c9d45949922555bf82dda77804828193fa3 (patch)
tree4e21f4d6800e3c2a451a047cdd4365d937cef32c /ci.nix
parent109114703b42ba17c8f2a4a347bd4a9ecd1e82d5 (diff)
systems: nixinate -> deploy-rs (again (again))
nixinate just hangs as of 163daad93da692fc280036b80f29ca9b65c005d4
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;
};
}