1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
let pkgs = import <nixpkgs> {}; in pkgs.mkShell { nativeBuildInputs = with pkgs; [ rustc cargo gcc ]; buildInputs = with pkgs; [ rustfmt clippy ]; RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}"; }