diff options
| author | seth <[email protected]> | 2023-12-13 22:06:24 -0500 |
|---|---|---|
| committer | seth <[email protected]> | 2023-12-14 03:34:54 -0500 |
| commit | 78a344c27ded577693734ed733a57cfd582700a3 (patch) | |
| tree | 2679c6b33073c70c6f33a66f5ef3955fefe64bff /ci.nix | |
| parent | 974decdfa3449f47892532f9ac728275fb9fa2df (diff) | |
tree-wide: back to attic & gha again
Diffstat (limited to 'ci.nix')
| -rw-r--r-- | ci.nix | 33 |
1 files changed, 0 insertions, 33 deletions
@@ -1,33 +0,0 @@ -{self, ...}: { - perSystem = { - lib, - pkgs, - system, - config, - ... - }: let - # get applicable system configurations - configurations = lib.getAttrs ["darwinConfigurations" "homeConfigurations" "nixosConfigurations"] self; - - systems = lib.pipe (builtins.attrValues configurations) [ - (builtins.foldl' (acc: attr: acc // attr) {}) - (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 { - packages.ciGate = pkgs.linkFarm "ci-gate" paths; - }; -} |
