packages/shells/rust9x/default.nix

49 lines
683 B
Nix
Raw Normal View History

2024-08-27 20:01:40 +00:00
{
binutils,
cacert,
cargo-xwin,
clangStdenv,
cmake,
curl,
git,
glibc,
lib,
mkShell,
ninja,
nix,
openssl,
patchelf,
pkg-config,
python3,
rustup,
}:
(mkShell.override { stdenv = clangStdenv; }) {
name = "rustc-win9x-dev";
nativeBuildInputs = [
binutils
cacert
cargo-xwin
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 [
clangStdenv.cc.cc.lib
]}";
}