From b98bb6090f463edd87cd21f2985819eac0e72e7a Mon Sep 17 00:00:00 2001 From: ElnuDev Date: Tue, 4 Apr 2023 18:49:28 -0700 Subject: [PATCH] shell.nix: use Rust overlay --- shell.nix | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/shell.nix b/shell.nix index 7217520..7f76e35 100644 --- a/shell.nix +++ b/shell.nix @@ -1,18 +1,25 @@ +# { 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; [ - rustc - cargo - rustfmt + ruststable rust-analyzer - clippy + + bacon bacon pkg-config openssl ]; - - RUST_BACKTRACE = 1; }