{ pkgs ? import { }, }: pkgs.callPackage ( { mkShell, stdenv, pkgs, }: mkShell { strictDeps = true; # host/target agnostic programs depsBuildBuild = [ pkgs.picotool pkgs.rustfmt pkgs.rust-analyzer ]; # compilers & linkers & dependecy finding programs nativeBuildInputs = [ pkgs.rustup ]; # libraries buildInputs = [ ]; shellHook = '' export PATH="''${CARGO_HOME:-~/.cargo}/bin":"$PATH" export PATH="''${RUSTUP_HOME:-~/.rustup}/toolchains/$RUSTC_VERSION-${stdenv.hostPlatform.rust.rustcTarget}/bin":"$PATH" ''; } ) { }