diff options
author | Vincent Ambo <mail@tazj.in> | 2022-05-02T10·56+0200 |
---|---|---|
committer | tazjin <tazjin@tvl.su> | 2022-05-02T23·34+0000 |
commit | 203a06390f1e874715e9ed4b53024b79ee01803a (patch) | |
tree | f5f7a3e00557525dedb0b7a9e052764a393a4908 /views | |
parent | e81280732444f492894b7b47ce38a2b3293a31d1 (diff) |
feat(tvl-kit): Expose lazy-deps r/3998
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>
Diffstat (limited to 'views')
-rw-r--r-- | views/kit/buildkite.yml | 6 | ||||
-rw-r--r-- | views/kit/default.nix | 11 | ||||
-rw-r--r-- | views/kit/workspace.josh | 1 |
3 files changed, 13 insertions, 5 deletions
diff --git a/views/kit/buildkite.yml b/views/kit/buildkite.yml index 406e81aad076..0bba63726db5 100644 --- a/views/kit/buildkite.yml +++ b/views/kit/buildkite.yml @@ -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 diff --git a/views/kit/default.nix b/views/kit/default.nix index 056683380bd7..47c6088a46cf 100644 --- a/views/kit/default.nix +++ b/views/kit/default.nix @@ -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 { }; }) diff --git a/views/kit/workspace.josh b/views/kit/workspace.josh index d2d7ec49af2b..bdf55033977f 100644 --- a/views/kit/workspace.josh +++ b/views/kit/workspace.josh @@ -3,6 +3,7 @@ besadii = :/ops/besadii :/nix:[ ::buildGo/ ::buildkite/ + ::lazy-deps/ ::readTree/ ] :/third_party:[ |