summary refs log tree commit diff
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2024-01-22 13:43:22 +0200
committerEfraim Flashner <efraim@flashner.co.il>2024-02-20 13:58:10 +0200
commitc45a50e1e029f0df4a768afd0e7c71864d072960 (patch)
treebb391514189f0169b0c0abdc1c57cce1558056f1
parentc047cd73045fe1423d2e593b9008c6f5e0e6bb78 (diff)
downloadguix-c45a50e1e029f0df4a768afd0e7c71864d072960.tar.gz
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
-rw-r--r--gnu/packages/crates-io.scm10
1 files changed, 9 insertions, 1 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 90d0f7ab76..625652e2ab 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)