From 62c4ed5ad73369bf427eaa7f8095ccb6a1f35525 Mon Sep 17 00:00:00 2001 From: "R. RyanTM" Date: Tue, 19 Aug 2025 18:37:12 +1000 Subject: [PATCH] mrustc: 0.10.1 -> 0.11.2 (#375039) * mrustc.bootstrap: update dont-download-rustc.patch * mrustc.bootstrap: fix vendored openssl build --- .../compilers/mrustc/bootstrap.nix | 6 ++--- pkgs/development/compilers/mrustc/default.nix | 4 ++-- .../patches/0001-dont-download-rustc.patch | 22 +++++++++---------- pkgs/top-level/all-packages.nix | 4 +--- 4 files changed, 17 insertions(+), 19 deletions(-) diff --git a/pkgs/development/compilers/mrustc/bootstrap.nix b/pkgs/development/compilers/mrustc/bootstrap.nix index d0907faa8c66..c95687257749 100644 --- a/pkgs/development/compilers/mrustc/bootstrap.nix +++ b/pkgs/development/compilers/mrustc/bootstrap.nix @@ -7,10 +7,10 @@ llvm_12, libffi, cmake, + perl, python3, zlib, libxml2, - openssl, pkg-config, curl, which, @@ -56,6 +56,7 @@ stdenv.mkDerivation rec { cmake mrustc mrustc-minicargo + perl pkg-config python3 time @@ -68,8 +69,7 @@ stdenv.mkDerivation rec { zlib libxml2 # for cargo - openssl - (curl.override { inherit openssl; }) + curl ]; makeFlags = [ diff --git a/pkgs/development/compilers/mrustc/default.nix b/pkgs/development/compilers/mrustc/default.nix index 4f11f37915fb..351f26aef5ff 100644 --- a/pkgs/development/compilers/mrustc/default.nix +++ b/pkgs/development/compilers/mrustc/default.nix @@ -6,7 +6,7 @@ }: let - version = "0.10.1"; + version = "0.11.2"; tag = "v${version}"; rev = "b6754f574f8846eb842feba4ccbeeecb10bdfacc"; in @@ -20,7 +20,7 @@ stdenv.mkDerivation rec { owner = "thepowersgang"; repo = "mrustc"; rev = tag; - hash = "sha256-sYnx5dUTaQbK4ugnSzAJwIUwZKPUhThmNA+WlY+LEWc="; + hash = "sha256-HW9+2mXri3ismeNeaDoTsCY6lxeH8AELegk+YbIn7Jw="; }; postPatch = '' diff --git a/pkgs/development/compilers/mrustc/patches/0001-dont-download-rustc.patch b/pkgs/development/compilers/mrustc/patches/0001-dont-download-rustc.patch index 7b92958af498..a595e5b1c8e5 100644 --- a/pkgs/development/compilers/mrustc/patches/0001-dont-download-rustc.patch +++ b/pkgs/development/compilers/mrustc/patches/0001-dont-download-rustc.patch @@ -1,14 +1,14 @@ The $(RUSTC_SRC_DL) file already exists, but for some reason Make wants to rebuild this target when it has $(RUSTC_SRC_TARBALL) as a dependency. ---- a/minicargo.mk 2023-04-06 08:26:18.408817572 +0200 -+++ b/minicargo.mk 2023-04-06 08:27:11.553536996 +0200 -@@ -176,7 +176,7 @@ - @echo [CURL] $@ - @rm -f $@ - @curl -sS https://static.rust-lang.org/dist/$@ -o $@ --$(RUSTC_SRC_DL): $(RUSTC_SRC_TARBALL) rustc-$(RUSTC_VERSION)-src.patch -+$(RUSTC_SRC_DL): rustc-$(RUSTC_VERSION)-src.patch - tar -xf $(RUSTC_SRC_TARBALL) - cd $(RUSTCSRC) && patch -p0 < ../rustc-$(RUSTC_VERSION)-src.patch; - touch $(RUSTC_SRC_DL) +--- a/minicargo.mk ++++ b/minicargo.mk +@@ -220,7 +220,7 @@ $(RUSTC_SRC_DL): rustc-$(RUSTC_VERSION)-src/extracted rustc-$(RUSTC_VERSION)-src + # - libstd, libpanic_unwind, libtest and libgetopts + # - libproc_macro (mrustc) + ifeq ($(USE_MERGED_BUILD),1) +-$(RUSTCSRC)mrustc-stdlib/Cargo.toml: $(RUSTC_SRC_DL) minicargo.mk ++$(RUSTCSRC)mrustc-stdlib/Cargo.toml: minicargo.mk + @mkdir -p $(dir $@) + @echo "#![no_core]" > $(dir $@)/lib.rs + @echo "[package]" > $@ diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index eba0aae5c634..4c60ad7b5884 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5818,9 +5818,7 @@ with pkgs; mrustc = callPackage ../development/compilers/mrustc { }; mrustc-minicargo = callPackage ../development/compilers/mrustc/minicargo.nix { }; - mrustc-bootstrap = callPackage ../development/compilers/mrustc/bootstrap.nix { - openssl = openssl_1_1; - }; + mrustc-bootstrap = callPackage ../development/compilers/mrustc/bootstrap.nix { }; rustPackages_1_88 = rust_1_88.packages.stable; rustPackages = rustPackages_1_88;