1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
{ pkgs ? import <nixpkgs> {} }: pkgs.mkShell rec { packages = with pkgs; [ rustc cargo rustPlatform.rustLibSrc rust-analyzer cargo-watch rustfmt ]; # Allows rust-analyzer to find the rust source RUST_SRC_PATH = "${pkgs.rustPlatform.rustLibSrc}"; }