mrustc-bootstrap: mark broken

This commit is contained in:
Emily
2025-09-14 19:03:24 +01:00
parent e71ade9ba7
commit b3aa91b9d9
@@ -4,7 +4,7 @@
fetchurl,
mrustc,
mrustc-minicargo,
llvm_12,
#llvm_12,
libffi,
cmake,
perl,
@@ -64,7 +64,7 @@ stdenv.mkDerivation rec {
];
buildInputs = [
# for rustc
llvm_12
#llvm_12
libffi
zlib
libxml2
@@ -76,7 +76,7 @@ stdenv.mkDerivation rec {
# Use shared mrustc/minicargo/llvm instead of rebuilding them
"MRUSTC=${mrustc}/bin/mrustc"
#"MINICARGO=${mrustc-minicargo}/bin/minicargo" # FIXME: we need to rebuild minicargo locally so --manifest-overrides is applied
"LLVM_CONFIG=${llvm_12.dev}/bin/llvm-config"
#"LLVM_CONFIG=${llvm_12.dev}/bin/llvm-config"
"RUSTC_TARGET=${stdenv.targetPlatform.rust.rustcTarget}"
];
@@ -153,5 +153,24 @@ stdenv.mkDerivation rec {
asl20
];
platforms = [ "x86_64-linux" ];
# rustc 1.54 only supports LLVM 12, which was removed from Nixpkgs.
# mrustc can bootstrap up to rustc 1.74, which supported LLVM 17,
# which has also been removed.
#
# 1.74 also shipped with the Cranelift backend, so perhaps that
# could be used instead? Alternatively, it may be possible to
# backport the upstream patches to support LLVM 18 to 1.74.
# Assuming LLVM 18 is still in Nixpkgs by the time you read this
# comment, anyway. But if not, then maybe mrustc has been updated
# to support newer rustc versions? Hope springs eternal.
#
# (Note that you still have to “draw the rest of the owl” to
# bootstrap the chain of rustc versions between this bootstrap
# and the version currently used in Nixpkgs, anyway, so this was
# already not useful for bootstrapping a Rust compiler for use with
# Nixpkgs without a lot of additional work. See Guixs Rust
# bootstrap chain, or the nonRust minimal bootstrap in Guix and
# Nixpkgs, for inspiration.)
broken = true;
};
}