{ pkgs ? import { } }: let RUST_SRC_PATH = pkgs.stdenv.mkDerivation { inherit (pkgs.rustc) src; inherit (pkgs.rustc.src) name; phases = [ "unpackPhase" "installPhase" ]; installPhase = "cp -r src $out"; }; in pkgs.mkShell { buildInputs = with pkgs; [ rustc cargo clippy rustfmt ]; inherit RUST_SRC_PATH; }