Rust : Thanks to 3Jl0y_PYCCKUi I now have a proper Rust shell config.
This commit is contained in:
parent
7f700eadfc
commit
49c49b8b15
|
@ -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
|
||||
|
|
Reference in a new issue