From 65dea58ef87dca688e8e1e57be8ebfe218919abf Mon Sep 17 00:00:00 2001 From: sterni Date: Sat, 17 Sep 2022 13:45:11 +0200 Subject: chore(tvix/eval): add simple .envrc / shell.nix Change-Id: I10a44b92391a8ac4d7ec5e4b878953c215f59908 Reviewed-on: https://cl.tvl.fyi/c/depot/+/6620 Tested-by: BuildkiteCI Reviewed-by: tazjin --- tvix/eval/.envrc | 7 +++++++ tvix/eval/shell.nix | 12 ++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 tvix/eval/.envrc create mode 100644 tvix/eval/shell.nix 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 + ]; +} -- cgit 1.4.1