2020-06-07 14:03:12 +00:00
|
|
|
# SPDX-FileCopyrightText: 2020 Luke Granger-Brown <depot@lukegb.com>
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2020-05-09 10:14:07 +00:00
|
|
|
let
|
|
|
|
depot = (import ./default.nix {});
|
|
|
|
pkgs = depot.third_party.nixpkgs;
|
|
|
|
lib = pkgs.lib;
|
|
|
|
prefixAttrs = prefix: lib.mapAttrsToList (name: value: { name = "${prefix}-${name}"; path = value; });
|
2020-10-04 00:07:59 +00:00
|
|
|
|
2021-04-09 18:24:44 +00:00
|
|
|
ciBits = {
|
|
|
|
x86_64-linux = {
|
|
|
|
machine = depot.ops.nixos.systems;
|
2021-04-13 17:22:56 +00:00
|
|
|
pkgs = builtins.removeAttrs depot.nix.pkgs [ "grafana-plugins" "windows" "unifiHacked" ];
|
2021-04-09 18:24:44 +00:00
|
|
|
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;
|
|
|
|
};
|
2021-04-09 18:31:58 +00:00
|
|
|
}.${builtins.currentSystem};
|
2020-05-09 10:14:07 +00:00
|
|
|
in
|
2021-04-09 18:24:44 +00:00
|
|
|
pkgs.linkFarm "ci" (builtins.concatLists (lib.mapAttrsToList prefixAttrs ciBits))
|