diff options
author | Vincent Ambo <mail@tazj.in> | 2022-12-08T13·55+0300 |
---|---|---|
committer | tazjin <tazjin@tvl.su> | 2022-12-15T17·26+0000 |
commit | 64f812b2f0ecd1b6759d8f2e4a9f05905f52e99d (patch) | |
tree | a8500fc19d2ff4b2244542de07dd198c6227c087 /tvix | |
parent | 3aca3d3bba54eaedefc7c472af8bca16ce1f163d (diff) |
refactor(tvix): provide a combined //tvix:shell mkShell target r/5421
Manually maintained shell target based on the previous "loose" `shell.nix` file. We might want to have a function that combines the dependencies of all the targets automatically, but at a quick glance that was actually non-trivial so I'm leaving it as an exercise for someone else. Change-Id: I74754940088f1b58e3b6754fb782470c80ea4292 Reviewed-on: https://cl.tvl.fyi/c/depot/+/7540 Autosubmit: tazjin <tazjin@tvl.su> Reviewed-by: sterni <sternenseemann@systemli.org> Tested-by: BuildkiteCI
Diffstat (limited to 'tvix')
-rw-r--r-- | tvix/default.nix | 20 | ||||
-rw-r--r-- | tvix/shell.nix | 17 |
2 files changed, 20 insertions, 17 deletions
diff --git a/tvix/default.nix b/tvix/default.nix index 7225bfb89e75..23ce0592ceb6 100644 --- a/tvix/default.nix +++ b/tvix/default.nix @@ -7,4 +7,24 @@ inherit pkgs; nixpkgs = pkgs.path; }; + + # Provide a shell for the combined dependencies of all Tvix Rust + # projects. Note that as this is manually maintained it may be + # lacking something, but it is required for some people's workflows. + # + # This shell can be entered with e.g. `mg shell //tvix:shell`. + shell = pkgs.mkShell { + name = "tvix-rust-dev-env"; + packages = [ + pkgs.buf-language-server + pkgs.cargo + pkgs.clippy + pkgs.rust-analyzer + pkgs.rustc + pkgs.rustfmt + pkgs.protobuf + ]; + }; + + meta.ci.targets = [ "shell" ]; } diff --git a/tvix/shell.nix b/tvix/shell.nix deleted file mode 100644 index e8d1e5e383ea..000000000000 --- a/tvix/shell.nix +++ /dev/null @@ -1,17 +0,0 @@ -{ depot ? import ../. { } -, pkgs ? depot.third_party.nixpkgs -, ... -}: - -pkgs.mkShell { - name = "tvix-eval-dev-env"; - packages = [ - pkgs.buf-language-server - pkgs.cargo - pkgs.clippy - pkgs.rust-analyzer - pkgs.rustc - pkgs.rustfmt - pkgs.protobuf - ]; -} |