about summary refs log tree commit diff
path: root/tvix/.envrc
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2022-11-08T22·26+0000
committerclbot <clbot@tvl.fyi>2022-11-11T19·55+0000
commit7eb70148219f902fa1df6b361b87c37efa17a332 (patch)
tree4c948c6d8bc6f3aececc7045e65bf9e7193f46a9 /tvix/.envrc
parentd00030128e465c8351412b1aefb4260681d8b497 (diff)
feat(tvix/eval): move shell.nix and .envrc to //tvix r/5277
Both //tvix/eval and //tvix/nix_cli have need to for rust tooling available
in $PATH.

Move this one level up, so it's accessible in all subdirectories.

Change-Id: I0763bbe9cefdc962f3a8f86c51e8f67cde8b4b04
Reviewed-on: https://cl.tvl.fyi/c/depot/+/7248
Autosubmit: flokli <flokli@flokli.de>
Reviewed-by: sterni <sternenseemann@systemli.org>
Reviewed-by: grfn <grfn@gws.fyi>
Tested-by: BuildkiteCI
Diffstat (limited to 'tvix/.envrc')
-rw-r--r--tvix/.envrc7
1 files changed, 7 insertions, 0 deletions
diff --git a/tvix/.envrc b/tvix/.envrc
new file mode 100644
index 000000000000..777b522575a7
--- /dev/null
+++ b/tvix/.envrc
@@ -0,0 +1,7 @@
+if command -v lorri >/dev/null; then
+  eval "$(lorri direnv)"
+else
+  use nix
+fi
+
+source_up