summary refs log tree commit diff
diff options
context:
space:
mode:
authorNicolas Goaziou <mail@nicolasgoaziou.fr>2021-02-10 17:33:11 +0100
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2021-02-13 11:50:36 +0100
commit6b06289f7ef2067c42169b7a12ba090f1e7ef15c (patch)
treebc0918c9d3e942e3eacb684fc2db8df154c47613
parentd24d7bc7361fca1f03c6348300d3221806656ec0 (diff)
downloadguix-6b06289f7ef2067c42169b7a12ba090f1e7ef15c.tar.gz
gnu: Add rust-hmac-0.5.
* gnu/packages/crates-io.scm (rust-hmac-0.5): New variable.
-rw-r--r--gnu/packages/crates-io.scm18
1 files changed, 18 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 99409bc42f..22f7735121 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -17096,6 +17096,24 @@ Hash-based Message Authentication Code}.")
         ("rust-md-5" ,rust-md-5-0.8)
         ("rust-sha2" ,rust-sha2-0.8))))))
 
+(define-public rust-hmac-0.5
+  (package
+    (inherit rust-hmac-0.8)
+    (name "rust-hmac")
+    (version "0.5.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "hmac" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0ppm927wsczkkvybj0y7r2w2lprvy5kf5h31qxyrvnbrhnqbvws4"))))
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs
+       (("rust-crypto-mac" ,rust-crypto-mac-0.5)
+        ("rust-digest" ,rust-digest-0.7))))))
+
 (define-public rust-hmac-0.4
   (package
     (inherit rust-hmac-0.8)