{ binutils, cacert, cmake, curl, git, glibc, lib, mkShell, ninja, nix, openssl, patchelf, pkg-config, python3, rustup, stdenv, }: mkShell { name = "rustc-dev"; nativeBuildInputs = [ binutils cacert cmake curl git ninja nix patchelf pkg-config python3 rustup ]; buildInputs = [ glibc.out glibc.static openssl ]; # Avoid creating text files for ICEs. RUSTC_ICE = "0"; # Provide `libstdc++.so.6` for the self-contained lld. LD_LIBRARY_PATH = "${lib.makeLibraryPath [ stdenv.cc.cc.lib ]}"; }