Rust : Thanks to 3Jl0y_PYCCKUi I now have a proper Rust shell config.

This commit is contained in:
Dmitry Voronin 2024-02-06 01:51:05 +03:00
parent 7f700eadfc
commit 49c49b8b15

View file

@ -1,12 +1,9 @@
with import <nixpkgs> {};
mkShell {
NIX_LD_LIBRARY_PATH = lib.makeLibraryPath [
stdenv.cc.cc
];
NIX_LD = lib.fileContents "${stdenv.cc}/nix-support/dynamic-linker";
buildInputs = [
let
pkgs = import <nixpkgs> {};
lib = pkgs.lib;
in
pkgs.mkShell {
nativeBuildInputs = with pkgs; [
cargo
rustc
rust-analyzer