From 49c49b8b157e5103f40fa3c8424e554c73590c0b Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Tue, 6 Feb 2024 01:51:05 +0300 Subject: [PATCH] Rust : Thanks to 3Jl0y_PYCCKUi I now have a proper Rust shell config. --- .config/linux/shell/Rust.nix | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/.config/linux/shell/Rust.nix b/.config/linux/shell/Rust.nix index 5db053e..20c2bd8 100644 --- a/.config/linux/shell/Rust.nix +++ b/.config/linux/shell/Rust.nix @@ -1,12 +1,9 @@ -with import {}; - -mkShell { - NIX_LD_LIBRARY_PATH = lib.makeLibraryPath [ - stdenv.cc.cc - ]; - NIX_LD = lib.fileContents "${stdenv.cc}/nix-support/dynamic-linker"; - - buildInputs = [ +let + pkgs = import {}; + lib = pkgs.lib; +in +pkgs.mkShell { + nativeBuildInputs = with pkgs; [ cargo rustc rust-analyzer