tvl-depot/views/kit/default.nix
Vincent Ambo 3bde425860 refactor(nix): Move mkLabel from buildkite to readTree
This function is more generically useful than just for pipeline
construction.

A subsequent commit will use it inside of readTree itself.

Change-Id: I5eabd6f659726484667e060958865dddbc205762
Reviewed-on: https://cl.tvl.fyi/c/depot/+/5237
Tested-by: BuildkiteCI
Reviewed-by: sterni <sternenseemann@systemli.org>
2022-02-07 15:13:52 +00:00

28 lines
758 B
Nix

# Externally importable TVL depot stack. This is intended to be called
# with a supplied package set, otherwise the package set currently in
# use by the TVL depot will be used.
#
# For now, readTree is not used inside of this configuration to keep
# it simple. Adding it may be useful if we set up test scaffolding
# around the exported workspace.
{ pkgs ? (import ./nixpkgs {
depotOverlays = false;
depot.third_party.sources = import ./sources { };
})
, ...
}:
pkgs.lib.fix (self: {
buildGo = import ./buildGo { inherit pkgs; };
readTree = import ./readTree { };
buildkite = import ./buildkite {
inherit pkgs;
depot.nix.readTree = self.readTree;
};
besadii = import ./besadii {
depot.nix.buildGo = self.buildGo;
};
})