1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
{ pkgs ? import <nixpkgs> {} }: pkgs.mkShell { buildInputs = with pkgs; [ cargo rustc rustfmt rust-analyzer gcc pkg-config ]; RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}"; }