tvl-depot/views/kit/default.nix
Vincent Ambo d8583088b8 feat(tvl-kit): Expose //tools/checks in tvl-kit
This makes CI utility functions available in TVL kit. For now this is
only the Terraform check, but said check has come up in other repos
before so it's useful to centralise here (and we might add more!)

Change-Id: I18acb19fc3407650ab9bad53dfba022dda498c07
Reviewed-on: https://cl.tvl.fyi/c/depot/+/5858
Autosubmit: tazjin <tazjin@tvl.su>
Tested-by: BuildkiteCI
Reviewed-by: asmundo <asmundo@gmail.com>
2022-06-07 09:40:06 +00:00

32 lines
909 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: {
besadii = import ./besadii {
depot.nix.buildGo = self.buildGo;
};
buildGo = import ./buildGo { inherit pkgs; };
buildkite = import ./buildkite {
inherit pkgs;
depot.nix.readTree = self.readTree;
};
checks = import ./checks { inherit pkgs; };
lazy-deps = import ./lazy-deps { inherit pkgs; };
magrathea = import ./magrathea { inherit pkgs; };
readTree = import ./readTree { };
})