ci-root: damn barf

This commit is contained in:
Luke Granger-Brown 2024-03-25 23:00:01 +00:00
parent 5e6c43c6fb
commit 9ad5ca9382

View file

@ -23,7 +23,11 @@ let
inherit (depot.nix.pkgs.authentik) docs webui pythonapp goserver server;
};
pkg-grafana-plugins = depot.nix.pkgs.grafana-plugins;
web = lib.filterAttrs (n: v: !lib.isFunction v) depot.web;
web = builtins.removeAttrs (lib.filterAttrs (n: v: !lib.isFunction v) depot.web) [ "barf" ];
web-barf = {
inherit (depot.web.barf) frontend;
inherit (depot.web.barf.sapi) sapid-wrapper;
};
trains = depot.go.trains.cmd.bins;
other = {
twitterchiver-archiver = depot.go.twitterchiver.archiver;
@ -45,5 +49,10 @@ let
};
aarch64-darwin = x86_64-darwin;
}.${system};
entriesFilter = entries: assert builtins.isList entries; let
notADerivationOrPath = builtins.filter (elem: !lib.isString elem.path && !lib.isDerivation elem.path) entries;
notADerivationOrPath' = map (elem: elem.name) notADerivationOrPath;
in assert lib.assertMsg ((lib.length notADerivationOrPath') == 0) "not a derivation or path: ${toString notADerivationOrPath'}"; entries;
in
pkgs.linkFarm "ci" (builtins.concatLists (lib.mapAttrsToList prefixAttrs ciBits))
pkgs.linkFarm "ci" (entriesFilter (builtins.concatLists (lib.mapAttrsToList prefixAttrs ciBits)))