gnu: Add rust-indoc-2.
* gnu/packages/crates-io.scm (rust-indoc-2): New variable. (rust-indoc-1): Inherit from rust-indoc-2.master
parent
066045747c
commit
e21988b503
|
@ -29188,8 +29188,34 @@ Rust.")
|
|||
Rust.")
|
||||
(license license:expat)))
|
||||
|
||||
(define-public rust-indoc-2
|
||||
(package
|
||||
(name "rust-indoc")
|
||||
(version "2.0.1")
|
||||
(source
|
||||
(origin
|
||||
(method url-fetch)
|
||||
(uri (crate-uri "indoc" version))
|
||||
(file-name (string-append name "-" version ".tar.gz"))
|
||||
(sha256
|
||||
(base32 "142nzc474x1xgdzk057yv1yfrgxsk5a9zybbcwwrzp5ih65v8b4z"))))
|
||||
(build-system cargo-build-system)
|
||||
(arguments
|
||||
`(#:cargo-development-inputs
|
||||
(("rust-rustversion" ,rust-rustversion-1)
|
||||
("rust-trybuild" ,rust-trybuild-1)
|
||||
("rust-unindent" ,rust-unindent-0.2))))
|
||||
(home-page "https://github.com/dtolnay/indoc")
|
||||
(synopsis "Indented document literals for Rust")
|
||||
(description
|
||||
"This crate provides a procedural macro for indented string literals.
|
||||
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-1
|
||||
(package
|
||||
(inherit rust-indoc-2)
|
||||
(name "rust-indoc")
|
||||
(version "1.0.7")
|
||||
(source
|
||||
|
@ -29199,21 +29225,13 @@ Rust.")
|
|||
(file-name (string-append name "-" version ".tar.gz"))
|
||||
(sha256
|
||||
(base32 "1qs42cn8rj7kdpmp1dlkzhv62rfmbx3ffwvsfw67zyq86jm1xaxd"))))
|
||||
(build-system cargo-build-system)
|
||||
(arguments
|
||||
`(#:skip-build? #true
|
||||
#:cargo-inputs
|
||||
(("rust-unindent" ,rust-unindent-0.1))
|
||||
#:cargo-development-inputs
|
||||
(("rust-rustversion" ,rust-rustversion-1)
|
||||
("rust-trybuild" ,rust-trybuild-1))))
|
||||
(home-page "https://github.com/dtolnay/indoc")
|
||||
(synopsis "Indented document literals for Rust")
|
||||
(description
|
||||
"This crate provides a procedural macro for indented string literals.
|
||||
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))))
|
||||
("rust-trybuild" ,rust-trybuild-1))))))
|
||||
|
||||
(define-public rust-indoc-0.3
|
||||
(package
|
||||
|
|
Reference in New Issue