guix-commits
[Top][All Lists]
Advanced

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

10/154: gnu: rust-password-hash-0.2: Allow newer versions of dependencie


From: guix-commits
Subject: 10/154: gnu: rust-password-hash-0.2: Allow newer versions of dependencies.
Date: Mon, 22 Jan 2024 15:36:30 -0500 (EST)

efraim pushed a commit to branch rust-team
in repository guix.

commit 2370db8a76b074acc29fe063d3b8989cc6d7770f
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Mon Jan 22 13:43:22 2024 +0200

    gnu: rust-password-hash-0.2: Allow newer versions of dependencies.
    
    * gnu/packages/crates-io.scm (rust-password-hash-0.2)[source]: Add
    snippet to allow using newer versions of dependant crates.
    
    Change-Id: I174b9a10f6242e4ab3c401439530709138ebae99
---
 gnu/packages/crates-io.scm | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index fc61e6dc69..8d14b0514d 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -45582,7 +45582,15 @@ Format (MCF).")
               (file-name (string-append name "-" version ".tar.gz"))
               (sha256
                (base32
-                "1rr4kd52ld978a2xhcvlc54p1d92yhxl9kvbajba7ia6rs5b5q3p"))))
+                "1rr4kd52ld978a2xhcvlc54p1d92yhxl9kvbajba7ia6rs5b5q3p"))
+              (modules '((guix build utils)))
+              (snippet
+               '(begin
+                  (substitute* "Cargo.toml"
+                    (((string-append ">=([[:digit:]]+(\\.[[:digit:]]+)*),"
+                                     " <([[:digit:]]+(\\.[[:digit:]]+)*)")
+                      _ version _)
+                     (string-append ">=" version)))))))
     (arguments
      (list #:cargo-inputs `(("rust-base64ct" ,rust-base64ct-1)
                             ("rust-subtle" ,rust-subtle-2)



reply via email to

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