packages/shells/rust/default.nix

47 lines
601 B
Nix

{
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
]}";
}