depot/ci-root.nix

21 lines
750 B
Nix
Raw Normal View History

# SPDX-FileCopyrightText: 2020 Luke Granger-Brown <depot@lukegb.com>
#
# SPDX-License-Identifier: Apache-2.0
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;
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" {
twitterchiver-archiver = depot.go.twitterchiver.archiver;
twitterchiver-archiver-docker = depot.go.twitterchiver.archiver.dockerImage;
2020-10-04 00:07:59 +00:00
};
in
2020-10-10 21:02:23 +00:00
pkgs.linkFarm "ci" (ciMachines ++ ciPackages ++ ciDocker ++ ciOther)