From: Tanguy Le Carrour <tanguy@bioneland.org>
To: guix-devel@gnu.org
Subject: [WIP] gnu: Add fd. (rust)
Date: Thu, 6 Feb 2020 17:32:06 +0100 [thread overview]
Message-ID: <20200206163205.20668-1-tanguy@bioneland.org> (raw)
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
next reply other threads:[~2020-02-06 16:38 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-06 16:32 Tanguy Le Carrour [this message]
2020-02-06 19:45 ` [WIP] gnu: Add fd. (rust) John Soo
2020-02-07 8:24 ` Tanguy Le Carrour
2020-02-06 19:56 ` Efraim Flashner
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=20200206163205.20668-1-tanguy@bioneland.org \
--to=tanguy@bioneland.org \
--cc=guix-devel@gnu.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).