diff options
author | Jakub Kądziołka <kuba@kadziolka.net> | 2020-06-25 00:38:51 +0200 |
---|---|---|
committer | Jakub Kądziołka <kuba@kadziolka.net> | 2020-06-25 02:55:10 +0200 |
commit | f03e4b73ff9bf79bae7f288a1feb5a719f55417a (patch) | |
tree | 00e6918be050ed0e6d135fc5e16723e53a51cd34 | |
parent | ab0479317eb4f829216961b52a9e5250a5b2a8f8 (diff) | |
download | guix-f03e4b73ff9bf79bae7f288a1feb5a719f55417a.tar guix-f03e4b73ff9bf79bae7f288a1feb5a719f55417a.tar.gz |
gnu: Add rust-base64-0.12.
* gnu/packages/crates-io.scm (rust-base64-0.12): New variable.
(rust-base64-0.11): Inherit from rust-base64-0.12.
-rw-r--r-- | gnu/packages/crates-io.scm | 28 |
1 files changed, 25 insertions, 3 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 88ff921ce4..3f905fc480 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -1117,10 +1117,10 @@ trace (backtrace) at runtime in a Rust program.") (license (list license:asl2.0 license:expat)))) -(define-public rust-base64-0.11 +(define-public rust-base64-0.12 (package (name "rust-base64") - (version "0.11.0") + (version "0.12.2") (source (origin (method url-fetch) @@ -1129,7 +1129,14 @@ trace (backtrace) at runtime in a Rust program.") (string-append name "-" version ".tar.gz")) (sha256 (base32 - "1iqmims6yvr6vwzyy54qd672zw29ipjj17p8klcr578c9ajpw6xl")))) + "0ryc48pp8dpx3rl1dcwn723dyfgifi4imh1f6kwd95lcqh6sy8z2")) + (modules '((guix build utils))) + (snippet + '(begin + ;; 'doctest' isn't stable until rust-1.40 + (substitute* "src/lib.rs" + (("\\(doctest") "(test")) + #t)))) (build-system cargo-build-system) (arguments `(#:cargo-development-inputs @@ -1142,6 +1149,21 @@ trace (backtrace) at runtime in a Rust program.") "This package encodes and decodes base64 as bytes or utf8.") (license (list license:expat license:asl2.0)))) +(define-public rust-base64-0.11 + (package + (inherit rust-base64-0.12) + (name "rust-base64") + (version "0.11.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "base64" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1iqmims6yvr6vwzyy54qd672zw29ipjj17p8klcr578c9ajpw6xl")))))) + (define-public rust-base64-0.10 (package (inherit rust-base64-0.11) |