all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#62643] [PATCH] gnu: rust-1.65: Rename package to rust-next.
@ 2023-04-03 14:00 Simon Tournier
  2023-04-03 18:13 ` ( via Guix-patches via
  0 siblings, 1 reply; 9+ messages in thread
From: Simon Tournier @ 2023-04-03 14:00 UTC (permalink / raw)
  To: 62643; +Cc: Simon Tournier, efraim

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

Hi,

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.

Cheers,
simon

 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-bootstrapped-package
           rust-1.64 "1.65.0" "0f005kc0vl7qyy298f443i78ibz71hmmh820726bzskpyrkvna2q")))
     (package
       (inherit base-rust)
+      (name "rust-next")
       (source
        (origin
          (inherit (package-source base-rust))

base-commit: 1d0158ab9036cff7737cbfb1678f876ae67c4ac2
-- 
2.38.1





^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2023-04-04 11:53 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-03 14:00 [bug#62643] [PATCH] gnu: rust-1.65: Rename package to rust-next Simon Tournier
2023-04-03 18:13 ` ( via Guix-patches via
2023-04-03 20:05   ` Maxim Cournoyer
2023-04-03 20:08     ` Efraim Flashner
2023-04-03 20:51     ` Simon Tournier
2023-04-04  3:49       ` Maxim Cournoyer
2023-04-03 20:53     ` Simon Tournier
2023-04-04  3:53       ` Maxim Cournoyer
2023-04-04  7:47         ` Simon Tournier

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.