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-11-01 21:39:25 +00:00
|
|
|
ciMachines = prefixAttrs "machine" depot.ops.nixos.systems;
|
2020-05-09 10:14:07 +00:00
|
|
|
ciPackages = prefixAttrs "pkg" depot.nix.pkgs;
|
2020-10-10 21:02:23 +00:00
|
|
|
ciDocker = prefixAttrs "docker" ((import ./docker-images.nix).images);
|
2020-10-04 00:07:59 +00:00
|
|
|
|
|
|
|
ciOther = prefixAttrs "other" {
|
2020-10-04 00:25:36 +00:00
|
|
|
twitterchiver-archiver = depot.go.twitterchiver.archiver;
|
|
|
|
twitterchiver-archiver-docker = depot.go.twitterchiver.archiver.dockerImage;
|
2020-10-04 00:07:59 +00:00
|
|
|
};
|
2020-05-09 10:14:07 +00:00
|
|
|
in
|
2020-10-10 21:02:23 +00:00
|
|
|
pkgs.linkFarm "ci" (ciMachines ++ ciPackages ++ ciDocker ++ ciOther)
|
2020-05-09 10:14:07 +00:00
|
|
|
|