[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#62643] [PATCH] gnu: rust-1.65: Rename package to rust-next.

From: Simon Tournier
Subject: [bug#62643] [PATCH] gnu: rust-1.65: Rename package to rust-next.
Date: Mon, 3 Apr 2023 16:00:11 +0200

* gnu/packages/rust.scm (rust-next): New exported variable, formerly known as


This patch allows to install the latest Rust, here 1.65, while the default
Rust used by the cargo build system is 'rust' (here 1.60).  Instead of,

    guix shell -e '(@@ (gnu packages rust) rust-1.65)'

it allows "guix shell rust-next"; similarly as emacs vs emacs-next.


 gnu/packages/rust.scm | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm
index 133c46fb7c..f39a7faac9 100644
--- a/gnu/packages/rust.scm
+++ b/gnu/packages/rust.scm
@@ -641,12 +641,16 @@ (define rust-1.64
                     (string-append name "\"" ,%cargo-reference-hash "\"")))
                  (generate-all-checksums "vendor"))))))))))
-(define rust-1.65
+;;; Note: Updating Rust is a core-updates change and so the package defined as
+;;; 'rust' cannot always be the latest version.  This package 'rust-next' is
+;;; the latest version of Rust.
+(define-public rust-next
   (let ((base-rust
           rust-1.64 "1.65.0" 
       (inherit base-rust)
+      (name "rust-next")
          (inherit (package-source base-rust))

base-commit: 1d0158ab9036cff7737cbfb1678f876ae67c4ac2

reply via email to

[Prev in Thread] Current Thread [Next in Thread]