From e370b29f86f21f886e0dc68bbfdb92d327e4794b Mon Sep 17 00:00:00 2001 From: ElnuDev Date: Sat, 10 Jun 2023 12:41:10 -0700 Subject: [PATCH] Set up shell.nix direnv --- .envrc | 1 + shell.nix | 21 +++++++++++++++++++++ 2 files changed, 22 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..e04cd2a --- /dev/null +++ b/shell.nix @@ -0,0 +1,21 @@ +# +{ pkgs ? import {}}: + +let + rust_overlay = import (builtins.fetchTarball "https://github.com/oxalica/rust-overlay/archive/master.tar.gz"); + pkgs = import { overlays = [ rust_overlay ]; }; + ruststable = (pkgs.rust-bin.stable.latest.default.override { + extensions = [ + "rust-src" + ]; + }); +in +pkgs.mkShell { + buildInputs = with pkgs; [ + ruststable + rust-analyzer + bacon + pkg-config + openssl + ]; +}