20 lines
742 B
Nix
20 lines
742 B
Nix
# 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;
|
|
ciDocker = prefixAttrs "docker" ((import ./docker-images.nix).images);
|
|
|
|
ciOther = prefixAttrs "other" {
|
|
twitterchiver-archiver = depot.go.twitterchiver.archiver;
|
|
twitterchiver-archiver-docker = depot.go.twitterchiver.archiver.dockerImage;
|
|
};
|
|
in
|
|
pkgs.linkFarm "ci" (ciMachines ++ ciPackages ++ ciDocker ++ ciOther)
|
|
|