depot/ci-root.nix

39 lines
1.5 KiB
Nix
Raw Normal View History

# SPDX-FileCopyrightText: 2020 Luke Granger-Brown <depot@lukegb.com>
#
# SPDX-License-Identifier: Apache-2.0
2021-09-05 09:21:41 +00:00
{ system ? builtins.currentSystem, ... }:
let
2021-09-05 09:21:41 +00:00
depot = (import ./default.nix { inherit system; });
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-09-05 09:08:28 +00:00
ciBits = rec {
x86_64-linux = {
machine = depot.ops.nixos.systems;
2021-12-21 21:58:23 +00:00
pkgs = builtins.removeAttrs depot.nix.pkgs [ "grafana-plugins" "windows" "unifiHacked" "nixpkgs-mozilla" "nightlyRust" "nightlyRustPlatform" "baserow" "baserow-oss" ];
2021-12-21 00:18:16 +00:00
pkg-baserow = {
inherit (depot.nix.pkgs.baserow) backend web-frontend mjml-tcpserver;
};
2021-12-21 21:58:23 +00:00
pkg-baserow-oss = {
inherit (depot.nix.pkgs.baserow-oss) backend web-frontend mjml-tcpserver;
};
pkg-grafana-plugins = depot.nix.pkgs.grafana-plugins;
2021-09-25 20:58:39 +00:00
web = lib.filterAttrs (n: v: !lib.isFunction v) depot.web;
2021-11-18 22:24:20 +00:00
trains = depot.go.trains.cmd.bins;
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-09-05 09:08:28 +00:00
aarch64-darwin = x86_64-darwin;
}.${builtins.currentSystem};
in
pkgs.linkFarm "ci" (builtins.concatLists (lib.mapAttrsToList prefixAttrs ciBits))