Subject: [bug#76345] [PATCH 2/2] gnu: Add rust-1.84.

From: Zheng Junjie <[email-masked]>
Date: Mon, 17 Feb 2025 02:02:41 +0800

* gnu/packages/rust.scm (rust-1.84): New variable.

Change-Id: I3d94cf252983e30aa68d55933a62e767e6530e68
---
 gnu/packages/rust.scm | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm
index d6b78209ac2..33d7b123f39 100644
--- a/gnu/packages/rust.scm
+++ b/gnu/packages/rust.scm
@@ -1082,6 +1082,23 @@ (define-public rust-1.83
                    (("\\[llvm\\]")
                     "[llvm]\ndownload-ci-llvm = false")))))))))))
 
+(define-public rust-1.84
+  (let ((base-rust
+         (rust-bootstrapped-package
+          rust-1.83 "1.84.1"
+          "0xdk3g1xq33fy4m7q6l38ba9ydxbanccyb0vczvlk998jvababsy")))
+    (package
+      (inherit base-rust)
+      (arguments
+       (substitute-keyword-arguments (package-arguments base-rust)
+         ((#:phases phases)
+          `(modify-phases ,phases
+             (add-after 'configure 'not-download-rustc
+               (lambda _
+                 (substitute* "config.toml"
+                   (("\\[rust\\]")
+                    "[rust]\ndownload-rustc = false")))))))))))
+
 
 (define (make-ignore-test-list strs)
   "Function to make creating a list to ignore tests a bit easier."
-- 
2.47.1