From 01af0c6f3f82585b804f158e90fb5dc8d12e0ecf Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Sun, 15 May 2022 20:36:19 +0530 Subject: [PATCH] nix: switch to Rust stable --- shell.nix | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/shell.nix b/shell.nix index 892fadb..fb36159 100644 --- a/shell.nix +++ b/shell.nix @@ -1,14 +1,13 @@ with import { overlays = [ (import ) ]; }; mkShell { buildInputs = [ - (rust-bin.selectLatestNightlyWith (toolchain: - toolchain.default.override { - extensions = [ "rust-src" "rustfmt-preview" "llvm-tools-preview" ]; - targets = - pkgs.lib.optionals pkgs.stdenv.isDarwin [ "aarch64-apple-darwin" ] - ++ pkgs.lib.optionals pkgs.stdenv.isLinux - [ "x86_64-unknown-linux-gnu" ]; - })) + (rust-bin.stable.latest.default.override { + extensions = [ "rust-src" "rustfmt-preview" ]; + targets = + pkgs.lib.optionals pkgs.stdenv.isDarwin [ "aarch64-apple-darwin" ] + ++ pkgs.lib.optionals pkgs.stdenv.isLinux + [ "x86_64-unknown-linux-gnu" ]; + }) xorg.libxcb python39 ] ++ pkgs.lib.optionals stdenv.isDarwin