[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#56074] [bug#56057] [gnu: Add dua-cli. 20/27] gnu: Add rust-textwrap
From: |
Aleksandr Vityazev |
Subject: |
[bug#56074] [bug#56057] [gnu: Add dua-cli. 20/27] gnu: Add rust-textwrap-0.15. |
Date: |
Sun, 24 Jul 2022 21:59:31 +0000 |
Hi,
The textwrap-0.15 build will fail
On 2022-06-18, 12:56 -0700, antlers <autumnalantlers@gmail.com> wrote:
> * gnu/packages/crates-io.scm (rust-textwrap-0.15): New variable.
> (rust-textwrap-0.12): Inherit from rust-textwrap-0.15.
> ---
> :100644 100644 fd431e544b f9aabbb334 M gnu/packages/crates-io.scm
> gnu/packages/crates-io.scm | 32 +++++++++++++++++++++++++++-----
> 1 file changed, 27 insertions(+), 5 deletions(-)
>
> diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
> index fd431e544b..f9aabbb334 100644
> --- a/gnu/packages/crates-io.scm
> +++ b/gnu/packages/crates-io.scm
> @@ -62665,10 +62665,10 @@ (define-public rust-text-size-1
> (description "This package provides a newtypes for text offsets")
> (license (list license:expat license:asl2.0))))
>
> -(define-public rust-textwrap-0.12
> +(define-public rust-textwrap-0.15
> (package
> (name "rust-textwrap")
> - (version "0.12.1")
> + (version "0.15.0")
> (source
> (origin
> (method url-fetch)
> @@ -62677,16 +62677,17 @@ (define-public rust-textwrap-0.12
> (string-append name "-" version ".tar.gz"))
> (sha256
> (base32
> - "12978qmkl5gcp94lxndpvp9qxq8mxp7hm9xbrw3422dgikchhc10"))))
> + "1yw513k61lfiwgqrfvsjw1a5wpvm0azhpjr2kr0jhnq9c56is55i"))))
> (build-system cargo-build-system)
> (arguments
> `(#:skip-build? #t
> #:cargo-inputs
> (("rust-hyphenation" ,rust-hyphenation-0.8)
> + ("rust-smawk" ,rust-smawk-0.3)
> ("rust-terminal-size" ,rust-terminal-size-0.1)
> + ("rust-unicode-linebreak" ,rust-unicode-linebreak-0.1)
> ("rust-unicode-width" ,rust-unicode-width-0.1))))
> - (home-page
> - "https://github.com/mgeisler/textwrap")
> + (home-page "https://github.com/mgeisler/textwrap")
> (synopsis "Library for word wrapping, indenting, and dedenting strings")
> (description
> "Textwrap is a small library for word wrapping, indenting, and dedenting
> @@ -62695,6 +62696,27 @@ (define-public rust-textwrap-0.12
> handle Unicode characters correctly.")
> (license license:expat)))
>
> +(define-public rust-textwrap-0.12
> + (package
> + (inherit rust-textwrap-0.15)
> + (name "rust-textwrap")
> + (version "0.12.1")
> + (source
> + (origin
> + (method url-fetch)
> + (uri (crate-uri "textwrap" version))
> + (file-name
> + (string-append name "-" version ".tar.gz"))
> + (sha256
> + (base32
> + "12978qmkl5gcp94lxndpvp9qxq8mxp7hm9xbrw3422dgikchhc10"))))
> + (arguments
> + `(#:skip-build? #t
> + #:cargo-inputs
> + (("rust-hyphenation" ,rust-hyphenation-0.8)
> + ("rust-terminal-size" ,rust-terminal-size-0.1)
> + ("rust-unicode-width" ,rust-unicode-width-0.1))))))
> +
> (define-public rust-textwrap-0.11
> (package
> (inherit rust-textwrap-0.12)
To correctly build textwrap-0.15 u can use these patches (see in
attachments). Although, of course, it does not play a big role, older
versions also fails when building.
--
Aleksandr Vityazev
0022-gnu-Add-rust-unic-emoji-char-0.9.patch
Description: emoji
0023-gnu-Add-rust-textwrap-0.15.patch
Description: textwrap-0.15
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [bug#56074] [bug#56057] [gnu: Add dua-cli. 20/27] gnu: Add rust-textwrap-0.15.,
Aleksandr Vityazev <=