From faa11c9d45949922555bf82dda77804828193fa3 Mon Sep 17 00:00:00 2001 From: seth Date: Wed, 13 Dec 2023 15:39:09 -0500 Subject: systems: nixinate -> deploy-rs (again (again)) nixinate just hangs as of 163daad93da692fc280036b80f29ca9b65c005d4 --- ci.nix | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) (limited to 'ci.nix') 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; }; } -- cgit v1.2.3