summary refs log tree commit diff
path: root/gnu/packages/rust.scm
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2022-11-15 16:28:13 +0200
committerEfraim Flashner <efraim@flashner.co.il>2022-11-15 18:13:37 +0200
commitb4762e1e87266dfe112fbb0fafea17da1737f995 (patch)
tree4236d3594f3451d361dcff63052e9f2033d4f6a5 /gnu/packages/rust.scm
parent9a27b61d3792656fe626ef8b9483ea6f16a1eaa3 (diff)
downloadguix-b4762e1e87266dfe112fbb0fafea17da1737f995.tar.gz
gnu: Add rust-1.64.
* gnu/packages/rust.scm (rust-1.64): New variable.
Diffstat (limited to 'gnu/packages/rust.scm')
-rw-r--r--gnu/packages/rust.scm18
1 files changed, 18 insertions, 0 deletions
diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm
index ac3cbc1801..e162900acf 100644
--- a/gnu/packages/rust.scm
+++ b/gnu/packages/rust.scm
@@ -619,6 +619,24 @@ safety and thread safety guarantees.")
   (rust-bootstrapped-package
    rust-1.62 "1.63.0" "1l4rrbzhxv88pnfq94nbyb9m6lfnjwixma3mwjkmvvs2aqlq158z"))
 
+(define rust-1.64
+  (let ((base-rust
+         (rust-bootstrapped-package
+          rust-1.63 "1.64.0" "018j720b2n12slp4xk64jc6shkncd46d621qdyzh2a8s3r49zkdk")))
+    (package
+      (inherit base-rust)
+      (arguments
+       (substitute-keyword-arguments (package-arguments base-rust)
+         ((#:phases phases)
+          `(modify-phases ,phases
+             (replace 'patch-cargo-checksums
+               (lambda* _
+                 (substitute* '("Cargo.lock"
+                                "src/bootstrap/Cargo.lock")
+                   (("(checksum = )\".*\"" all name)
+                    (string-append name "\"" ,%cargo-reference-hash "\"")))
+                 (generate-all-checksums "vendor"))))))))))
+
 ;;; Note: Only the latest versions of Rust are supported and tested.  The
 ;;; intermediate rusts are built for bootstrapping purposes and should not
 ;;; be relied upon.  This is to ease maintenance and reduce the time