depot/ci-root.nix

20 lines
620 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; });
ciMachines = prefixAttrs "machine" depot.ops.nixos;
ciPackages = prefixAttrs "pkg" depot.nix.pkgs;
2020-10-04 00:07:59 +00:00
ciOther = prefixAttrs "other" {
twitterchiver = depot.go.twitterchiver;
twitterchiverDocker = depot.go.twitterchiver.dockerImage;
};
in
2020-10-04 00:07:59 +00:00
pkgs.linkFarm "ci" (ciMachines ++ ciPackages ++ ciOther)