diff options
author | Marius Bakke <marius@gnu.org> | 2022-01-23 17:09:52 +0100 |
---|---|---|
committer | Marius Bakke <marius@gnu.org> | 2022-01-23 19:59:09 +0100 |
commit | be12d14ad6a0b8751ac370517aec47e03c334ef2 (patch) | |
tree | 03f6f7831378e02424030cd30375800cb601275f | |
parent | 61375770cbc379c75050db5896123647b31cd1f8 (diff) | |
download | guix-be12d14ad6a0b8751ac370517aec47e03c334ef2.tar.gz |
gnu: rust-indoc: Add 0.3.
* gnu/packages/crates-io.scm (rust-indoc-0.3, rust-indoc-impl-0.3): New variables.
-rw-r--r-- | gnu/packages/crates-io.scm | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 2522dce149..1701fe0633 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -27634,6 +27634,49 @@ The @code{indoc!()} macro takes a multiline string literal and un-indents it at compile time so the leftmost non-space character is in the first column.") (license (list license:expat license:asl2.0)))) +(define-public rust-indoc-0.3 + (package + (inherit rust-indoc-1) + (version "0.3.6") + (source + (origin + (method url-fetch) + (uri (crate-uri "indoc" version)) + (file-name (string-append "rust-indoc-" version ".tar.gz")) + (sha256 + (base32 "1n2fd2wm1h005hd7pjgx4gv5ymyq4sxqn8z0ssw6xchgqs5ilx27")))) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-indoc-impl" ,rust-indoc-impl-0.3) + ("rust-proc-macro-hack" ,rust-proc-macro-hack-0.5)))))) + +(define-public rust-indoc-impl-0.3 + (package + (inherit rust-indoc-0.3) + (name "rust-indoc-impl") + (version "0.3.6") + (source + (origin + (method url-fetch) + (uri (crate-uri "indoc-impl" version)) + (file-name (string-append "rust-indoc-impl-" version ".tar.gz")) + (sha256 + (base32 "1w58yg249kmzsn75kcj34qaxqh839l1hsaj3bzggy3q03wb6s16f")))) + (build-system cargo-build-system) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-proc-macro-hack" ,rust-proc-macro-hack-0.5) + ("rust-proc-macro2" ,rust-proc-macro2-1) + ("rust-quote" ,rust-quote-1) + ("rust-syn" ,rust-syn-1) + ("rust-unindent" ,rust-unindent-0.1)))) + (synopsis "Macros for @code{rust-indoc}") + (description + "This package provides macros for use with the @code{rust-indoc} +package. It is obsolete for indoc versions > 1."))) + (define-public rust-infer-0.2 (package (name "rust-infer") |