about summary refs log tree commit diff
path: root/tvix
diff options
context:
space:
mode:
Diffstat (limited to 'tvix')
-rw-r--r--tvix/eval/.envrc7
-rw-r--r--tvix/eval/shell.nix12
2 files changed, 19 insertions, 0 deletions
diff --git a/tvix/eval/.envrc b/tvix/eval/.envrc
new file mode 100644
index 0000000000..777b522575
--- /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 0000000000..2c3da208f5
--- /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
+  ];
+}