49 lines
683 B
Nix
49 lines
683 B
Nix
|
{
|
||
|
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
|
||
|
]}";
|
||
|
}
|