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:
parent
e812807324
commit
203a06390f
3 changed files with 13 additions and 5 deletions
|
@ -6,5 +6,11 @@
|
||||||
steps:
|
steps:
|
||||||
- command: "nix-build --no-out-link -A besadii"
|
- command: "nix-build --no-out-link -A besadii"
|
||||||
label: ":nix: besadii"
|
label: ":nix: besadii"
|
||||||
|
|
||||||
- command: "nix-build --no-out-link -A magrathea"
|
- command: "nix-build --no-out-link -A magrathea"
|
||||||
label: ":nix: magrathea"
|
label: ":nix: magrathea"
|
||||||
|
|
||||||
|
- label: ":nix: lazy-deps"
|
||||||
|
command: |
|
||||||
|
nix-build -E 'with import ./. {}; lazy-deps { mg.attr = "magrathea"; }'
|
||||||
|
result/bin/mg
|
||||||
|
|
|
@ -14,17 +14,18 @@
|
||||||
}:
|
}:
|
||||||
|
|
||||||
pkgs.lib.fix (self: {
|
pkgs.lib.fix (self: {
|
||||||
|
besadii = import ./besadii {
|
||||||
|
depot.nix.buildGo = self.buildGo;
|
||||||
|
};
|
||||||
|
|
||||||
buildGo = import ./buildGo { inherit pkgs; };
|
buildGo = import ./buildGo { inherit pkgs; };
|
||||||
readTree = import ./readTree { };
|
|
||||||
|
|
||||||
buildkite = import ./buildkite {
|
buildkite = import ./buildkite {
|
||||||
inherit pkgs;
|
inherit pkgs;
|
||||||
depot.nix.readTree = self.readTree;
|
depot.nix.readTree = self.readTree;
|
||||||
};
|
};
|
||||||
|
|
||||||
besadii = import ./besadii {
|
lazy-deps = import ./lazy-deps { inherit pkgs; };
|
||||||
depot.nix.buildGo = self.buildGo;
|
|
||||||
};
|
|
||||||
|
|
||||||
magrathea = import ./magrathea { inherit pkgs; };
|
magrathea = import ./magrathea { inherit pkgs; };
|
||||||
|
readTree = import ./readTree { };
|
||||||
})
|
})
|
||||||
|
|
|
@ -3,6 +3,7 @@ besadii = :/ops/besadii
|
||||||
:/nix:[
|
:/nix:[
|
||||||
::buildGo/
|
::buildGo/
|
||||||
::buildkite/
|
::buildkite/
|
||||||
|
::lazy-deps/
|
||||||
::readTree/
|
::readTree/
|
||||||
]
|
]
|
||||||
:/third_party:[
|
:/third_party:[
|
||||||
|
|
Loading…
Reference in a new issue