From mboxrd@z Thu Jan 1 00:00:00 1970 From: Efraim Flashner Subject: Re: [WIP] gnu: Add fd. (rust) Date: Thu, 6 Feb 2020 21:56:54 +0200 Message-ID: <20200206195654.GF7827@E5400> References: <20200206163205.20668-1-tanguy@bioneland.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="aPdhxNJGSeOG9wFI" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:35219) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iznHE-0004LG-BF for guix-devel@gnu.org; Thu, 06 Feb 2020 14:57:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iznHD-0003eK-21 for guix-devel@gnu.org; Thu, 06 Feb 2020 14:57:28 -0500 Received: from flashner.co.il ([178.62.234.194]:51874) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iznHC-0003e9-Rg for guix-devel@gnu.org; Thu, 06 Feb 2020 14:57:27 -0500 Content-Disposition: inline In-Reply-To: <20200206163205.20668-1-tanguy@bioneland.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane-mx.org@gnu.org Sender: "Guix-devel" To: Tanguy Le Carrour Cc: guix-devel@gnu.org --aPdhxNJGSeOG9wFI Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Feb 06, 2020 at 05:32:06PM +0100, Tanguy Le Carrour wrote: > Dear Guix, >=20 > I'm back on (trying to) package fd [1][]. >=20 > [1]: https://github.com/sharkdp/fd >=20 > 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: >=20 > ``` > 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= =2Edrv-0/fd-find-7.4.0)` > command "cargo" "build" "--release" failed with status 101 > ``` >=20 > I tried adding `term_size` to `cargo-inputs` or to `cargo-development-inp= uts`, > but it did not solve my problem. Am I missing something?! >=20 > I'm not a rust specialist, so any help would be welcome! >=20 > Regards >=20 > --=20 > Tanguy >=20 >=20 > * gnu/packages/rust-apps.scm (fd): New variable. > --- > gnu/packages/rust-apps.scm | 43 ++++++++++++++++++++++++++++++++++++++ > 1 file changed, 43 insertions(+) >=20 > 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 depend= ency > + ("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))) > --=20 > 2.25.0 >=20 >=20 According to here=C2=B9 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. =C2=B9 https://crates.io/crates/clap/2.33.0 --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --aPdhxNJGSeOG9wFI Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAl48b4YACgkQQarn3Mo9 g1F5vw/+Ih/TnVz2zwlNn7rwCEKodW5xWpn8hJ+JQUR5Mp7ItJJHnmZbdiC1UfqO B6Bkwfd9R6vReTRl+DCyO1AQy2cEEalFxWJ9YB0WoGhVh9Ubqt1TiCq5272O4ndM G/mimDG5bv+l/+ayN+WJa0IibZrdJXQAcTOIRDteJm7P5CZNz9hm4T9zloaoW+DL rZp4m6wXAoOpCZXALptTDfSVndSjVeJIylMu1qUcBlD7Z7/ub5lN25iKLT7/V5eH fEV1E0XBnu/wThj6XQlRmaPr+YbHu9xiOmTs4ij+B0h5F2ZnuEYexPSn4V5jVEq9 YFLpxkHx+1o+Di6kMGPV2H8RvU+Mr+NvH+DnQQS30GiIq/bbK+9kGwOw+ruRBPfZ 2vdYkps6bsChJ/w/wNcf13tik/9z3Zrqc45jriko212w0fNTqMB7vbWR63KjK0bH WjEy9bhRs8e7hXycbuudyMUkBMv3AwIe/QiGaZnNYwn4XGYjlfIxAsdcOAI0SMZb 31xgClsbz4erXafi5Rn7L0LhFrmkK1RYkygUzoUDPTYnHVh1UAG+eC1XIyeBaGjx twVd8A9BTTYjtZXEagQiZIYB6QGBIdpf4zaNVs6djqY/huGyopBPVO0eKVOJ3NWO 7FGOa203vAH3FHeqpLLU66P/SbX177ykxC2HQTa7OUOOmQMSxFo= =Z/kM -----END PGP SIGNATURE----- --aPdhxNJGSeOG9wFI--