feat(tvl-kit): Expose lazy-deps

This adds the //nix/lazy-deps tool at //lazy-deps in tvl-kit.

A CI step is added for the kit that uses this to lazily build an
example tool (magrathea).

Change-Id: Ibd6d69c83b87bd6e0766942d73297621f2593113
Reviewed-on: https://cl.tvl.fyi/c/depot/+/5514
Tested-by: BuildkiteCI
Reviewed-by: ezemtsov <eugene.zemtsov@gmail.com>
This commit is contained in:
Vincent Ambo 2022-05-02 12:56:02 +02:00 committed by tazjin
parent e812807324
commit 203a06390f
3 changed files with 13 additions and 5 deletions

View file

@ -6,5 +6,11 @@
steps:
- command: "nix-build --no-out-link -A besadii"
label: ":nix: besadii"
- command: "nix-build --no-out-link -A magrathea"
label: ":nix: magrathea"
- label: ":nix: lazy-deps"
command: |
nix-build -E 'with import ./. {}; lazy-deps { mg.attr = "magrathea"; }'
result/bin/mg

View file

@ -14,17 +14,18 @@
}:
pkgs.lib.fix (self: {
besadii = import ./besadii {
depot.nix.buildGo = self.buildGo;
};
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;
};
lazy-deps = import ./lazy-deps { inherit pkgs; };
magrathea = import ./magrathea { inherit pkgs; };
readTree = import ./readTree { };
})

View file

@ -3,6 +3,7 @@ besadii = :/ops/besadii
:/nix:[
::buildGo/
::buildkite/
::lazy-deps/
::readTree/
]
:/third_party:[