diff options
author | sterni <sternenseemann@systemli.org> | 2022-09-17T11·45+0200 |
---|---|---|
committer | sterni <sternenseemann@systemli.org> | 2022-09-17T17·31+0000 |
commit | 65dea58ef87dca688e8e1e57be8ebfe218919abf (patch) | |
tree | 8051117d1b21beec2761497d0ea704acb4baff5c /tvix | |
parent | 67e796b2e128f7fcbf7e41e6403b0fad455e6f9c (diff) |
chore(tvix/eval): add simple .envrc / shell.nix r/4887
Change-Id: I10a44b92391a8ac4d7ec5e4b878953c215f59908 Reviewed-on: https://cl.tvl.fyi/c/depot/+/6620 Tested-by: BuildkiteCI Reviewed-by: tazjin <tazjin@tvl.su>
Diffstat (limited to 'tvix')
-rw-r--r-- | tvix/eval/.envrc | 7 | ||||
-rw-r--r-- | tvix/eval/shell.nix | 12 |
2 files changed, 19 insertions, 0 deletions
diff --git a/tvix/eval/.envrc b/tvix/eval/.envrc new file mode 100644 index 000000000000..777b522575a7 --- /dev/null +++ b/tvix/eval/.envrc @@ -0,0 +1,7 @@ +if command -v lorri >/dev/null; then + eval "$(lorri direnv)" +else + use nix +fi + +source_up diff --git a/tvix/eval/shell.nix b/tvix/eval/shell.nix new file mode 100644 index 000000000000..2c3da208f5fc --- /dev/null +++ b/tvix/eval/shell.nix @@ -0,0 +1,12 @@ +{ depot ? import ../../. { } +, pkgs ? depot.third_party.nixpkgs +}: + +pkgs.mkShell { + name = "tvix-eval-dev-env"; + packages = [ + pkgs.cargo + pkgs.rustc + pkgs.clippy + ]; +} |