From: Efraim Flashner <efraim@flashner.co.il>
To: Tanguy Le Carrour <tanguy@bioneland.org>
Cc: guix-devel@gnu.org
Subject: Re: [WIP] gnu: Add fd. (rust)
Date: Thu, 6 Feb 2020 21:56:54 +0200 [thread overview]
Message-ID: <20200206195654.GF7827@E5400> (raw)
In-Reply-To: <20200206163205.20668-1-tanguy@bioneland.org>
[-- Attachment #1: Type: text/plain, Size: 3853 bytes --]
On Thu, Feb 06, 2020 at 05:32:06PM +0100, Tanguy Le Carrour wrote:
> Dear Guix,
>
> I'm back on (trying to) package fd [1][].
>
> [1]: https://github.com/sharkdp/fd
>
> I've just submitted 2 patches to add 2 trivial rust dependencies I need.
> But even with those, `fd` does not build! :-(
> I have the following error:
>
> ```
> starting phase `build'
> error: no matching package named `term_size` found
> location searched: registry `https://github.com/rust-lang/crates.io-index`
> perhaps you meant: term_size
> required by package `clap v2.33.0`
> ... which is depended on by `fd-find v7.4.0 (/tmp/guix-build-fd-7.4.0.drv-0/fd-find-7.4.0)`
> command "cargo" "build" "--release" failed with status 101
> ```
>
> I tried adding `term_size` to `cargo-inputs` or to `cargo-development-inputs`,
> but it did not solve my problem. Am I missing something?!
>
> I'm not a rust specialist, so any help would be welcome!
>
> Regards
>
> --
> Tanguy
>
>
> * gnu/packages/rust-apps.scm (fd): New variable.
> ---
> gnu/packages/rust-apps.scm | 43 ++++++++++++++++++++++++++++++++++++++
> 1 file changed, 43 insertions(+)
>
> diff --git a/gnu/packages/rust-apps.scm b/gnu/packages/rust-apps.scm
> index 5b61cdc542..5e7fc557b6 100644
> --- a/gnu/packages/rust-apps.scm
> +++ b/gnu/packages/rust-apps.scm
> @@ -254,3 +254,46 @@ gitignore rules.")
> show number of files, total lines within those files and code, comments, and
> blanks grouped by language.")
> (license (list license:expat license:asl2.0))))
> +
> +(define-public fd
> + (package
> + (name "fd")
> + (version "7.4.0")
> + (source
> + (origin
> + (method url-fetch)
> + (uri (crate-uri "fd-find" version))
> + (file-name
> + (string-append name "-" version ".tar.gz"))
> + (sha256
> + (base32
> + "147m872zff0srwq9vaxkkbab06g3fkklbk1g2lx90vdhgs37f5xj"))))
> + (build-system cargo-build-system)
> + (arguments
> + `(#:cargo-inputs
> + (("rust-ansi-term" ,rust-ansi-term-0.12)
> + ("rust-atty" ,rust-atty-0.2)
> + ("rust-ctrlc" ,rust-ctrlc-3.1)
> + ("rust-globset" ,rust-globset-0.4)
> + ("rust-humantime" ,rust-humantime-1.3)
> + ("rust-ignore" ,rust-ignore-0.4)
> + ("rust-jemallocator" ,rust-jemallocator-0.3)
> + ("rust-lazy-static" ,rust-lazy-static-1.3)
> + ("rust-lscolors" ,rust-lscolors-0.6)
> + ("rust-num-cpus" ,rust-num-cpus-1.10)
> + ("rust-regex" ,rust-regex-1.1)
> + ("rust-regex-syntax" ,rust-regex-syntax-0.6))
> + #:cargo-development-inputs
> + (("rust-clap" ,rust-clap-2)
> + ("rust-diff" ,rust-diff-0.1)
> + ("rust-filetime" ,rust-filetime-0.2)
> + ("rust-tempdir" ,rust-tempdir-0.3)
> + ("rust-term-size" ,rust-term-size-1.0) ;; not listed as a dependency
> + ("rust-version-check" ,rust-version-check-0.9))))
> + (home-page "https://github.com/sharkdp/fd")
> + (synopsis "A simple, fast and user-friendly alternative to find")
> + (description
> + "`fd` is a simple, fast and user-friendly alternative to `find`.
> +While it does not seek to mirror all of `find`'s powerful functionality,
> +it provides sensible (opinionated) defaults for 80% of the use cases.")
> + (license license:asl2.0)))
> --
> 2.25.0
>
>
According to here¹ you need rust-term-size-0.3. Ideally we'll switch to
actually building and testing more of the crates so we can catch missing
or wrong dependencies.
¹ https://crates.io/crates/clap/2.33.0
--
Efraim Flashner <efraim@flashner.co.il> אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2020-02-06 19:57 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-06 16:32 [WIP] gnu: Add fd. (rust) Tanguy Le Carrour
2020-02-06 19:45 ` John Soo
2020-02-07 8:24 ` Tanguy Le Carrour
2020-02-06 19:56 ` Efraim Flashner [this message]
2020-02-07 7:57 ` Tanguy Le Carrour
2020-02-07 8:26 ` Efraim Flashner
2020-02-07 8:41 ` Tanguy Le Carrour
2020-02-07 16:54 ` John Soo
2020-02-07 17:28 ` John Soo
2020-02-08 19:15 ` Tanguy LE CARROUR
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200206195654.GF7827@E5400 \
--to=efraim@flashner.co.il \
--cc=guix-devel@gnu.org \
--cc=tanguy@bioneland.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).