From c467816a0b0560a9f1e75dc40944ed5bb7df9d12 Mon Sep 17 00:00:00 2001 From: ElnuDev Date: Wed, 29 Mar 2023 21:07:09 -0700 Subject: [PATCH] Set up shell.nix direnv --- .envrc | 1 + shell.nix | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 .envrc create mode 100644 shell.nix diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..1d953f4 --- /dev/null +++ b/.envrc @@ -0,0 +1 @@ +use nix diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..725dd24 --- /dev/null +++ b/shell.nix @@ -0,0 +1,16 @@ +{ pkgs ? import {}}: + +pkgs.mkShell { + buildInputs = with pkgs; [ + rustc + cargo + rustfmt + rust-analyzer + clippy + + pkg-config + openssl + ]; + + RUST_BACKTRACE = 1; +}