{ pkgs, fenix, selfPkgs, ... }: (builtins.mapAttrs ( packageName: package: pkgs.mkShell { inputsFrom = [ package ]; packages = with pkgs; [ rustfmt clippy cargo-expand cargo-tarpaulin gdb ]; RUST_BACKTRACE = 1; RUST_LOG = "all"; } ) selfPkgs) // { test = pkgs.mkShell { packages = with pkgs; [ (pkgs.symlinkJoin { name = "rust-toolchain"; paths = with pkgs; [ rustc cargo rustPlatform.rustcSrc rustPlatform.rustLibSrc rustfmt clippy cargo-expand cargo-tarpaulin ]; }) gcc gnumake xe libgcc libunwind pkgsStatic.gcc pkgsStatic.libgcc pkgsStatic.musl ]; RUST_SRC_PATH = "${pkgs.rustPlatform.rustLibSrc}"; }; }