guix-commits
[Top][All Lists]
Advanced

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

09/154: gnu: rust-password-hash-0.3: Allow newer versions of dependencie


From: guix-commits
Subject: 09/154: gnu: rust-password-hash-0.3: 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 5e2a10f9dec05e041b14c5e3d3f95df359cbd143
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Mon Jan 22 13:07:25 2024 +0200

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

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index edf3d3e5ca..fc61e6dc69 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -45557,7 +45557,14 @@ Format (MCF).")
        (uri (crate-uri "password-hash" version))
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
-        (base32 "1n7ig9j5x2q0fk12nny40faggrs0ra5bbxp6gz5yghfwlqw1ay8x"))))
+        (base32 "1n7ig9j5x2q0fk12nny40faggrs0ra5bbxp6gz5yghfwlqw1ay8x"))
+       (modules '((guix build utils)))
+       (snippet
+        '(begin (substitute* "Cargo.toml"
+                  (((string-append ">=([[:digit:]]+(\\.[[:digit:]]+)*),"
+                                   " <([[:digit:]]+(\\.[[:digit:]]+)*)")
+                    _ version _)
+                   (string-append ">=" version)))))))
     (arguments
      `(#:cargo-inputs
        (("rust-base64ct" ,rust-base64ct-1.0.1)



reply via email to

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