ci-root: tidy up, add x86_64-darwin support (that's not yet used)

This commit is contained in:
Luke Granger-Brown 2021-04-09 18:24:44 +00:00
parent c65e8b8a54
commit 19282ea93e

View file

@ -7,16 +7,23 @@ let
pkgs = depot.third_party.nixpkgs;
lib = pkgs.lib;
prefixAttrs = prefix: lib.mapAttrsToList (name: value: { name = "${prefix}-${name}"; path = value; });
ciMachines = prefixAttrs "machine" depot.ops.nixos.systems;
ciPackages = prefixAttrs "pkg" (builtins.removeAttrs depot.nix.pkgs [ "grafana-plugins" "windows" ]);
ciGrafanaPlugins = prefixAttrs "pkg-grafana-plugins" depot.nix.pkgs.grafana-plugins;
ciWeb = prefixAttrs "web" depot.web;
ciOther = prefixAttrs "other" {
twitterchiver-archiver = depot.go.twitterchiver.archiver;
twitterchiver-archiver-docker = depot.go.twitterchiver.archiver.dockerImage;
twitternuke = depot.go.twitternuke;
systemPathJSON = depot.ops.nixos.systemPathJSON;
ciBits = {
x86_64-linux = {
machine = depot.ops.nixos.systems;
pkgs = builtins.removeAttrs depot.nix.pkgs [ "grafana-plugins" "windows" ];
pkg-grafana-plugins = depot.nix.pkgs.grafana-plugins;
web = depot.web;
other = {
twitterchiver-archiver = depot.go.twitterchiver.archiver;
twitterchiver-archiver-docker = depot.go.twitterchiver.archiver.dockerImage;
twitternuke = depot.go.twitternuke;
systemPathJSON = depot.ops.nixos.systemPathJSON;
};
};
x86_64-darwin = {
home-manager = depot.ops.home-manager-ext.built;
};
};
in
pkgs.linkFarm "ci" (ciMachines ++ ciPackages ++ ciGrafanaPlugins ++ ciWeb ++ ciOther)
pkgs.linkFarm "ci" (builtins.concatLists (lib.mapAttrsToList prefixAttrs ciBits))