From patchwork Tue Mar 19 03:50:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: normally_js X-Patchwork-Id: 61975 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 8E4A627BBE2; Tue, 19 Mar 2024 04:26:09 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 6271827BBEB for ; Tue, 19 Mar 2024 04:26:01 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rmR2Y-0006tn-MJ; Tue, 19 Mar 2024 00:25:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rmR2U-0006sh-Fa for guix-patches@gnu.org; Tue, 19 Mar 2024 00:25:26 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rmR2T-0007wa-Fi for guix-patches@gnu.org; Tue, 19 Mar 2024 00:25:26 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rmR34-0007mY-Kn; Tue, 19 Mar 2024 00:26:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#69890] [PATCH 04/43] gnu: Add rust-which-6. Resent-From: normalmente Original-Sender: "Debbugs-submit" Resent-CC: efraim@flashner.co.il, guix-patches@gnu.org Resent-Date: Tue, 19 Mar 2024 04:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69890 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 69890@debbugs.gnu.org Cc: normalmente , Efraim Flashner X-Debbugs-Original-Xcc: Efraim Flashner Received: via spool by 69890-submit@debbugs.gnu.org id=B69890.171082232029802 (code B ref 69890); Tue, 19 Mar 2024 04:26:02 +0000 Received: (at 69890) by debbugs.gnu.org; 19 Mar 2024 04:25:20 +0000 Received: from localhost ([127.0.0.1]:36803 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rmR2O-0007ka-7m for submit@debbugs.gnu.org; Tue, 19 Mar 2024 00:25:20 -0400 Received: from mout01.posteo.de ([185.67.36.65]:39817) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rmQdS-0006RE-2Q for 69890@debbugs.gnu.org; Mon, 18 Mar 2024 23:59:35 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id C8BB3240027 for <69890@debbugs.gnu.org>; Tue, 19 Mar 2024 04:52:50 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1710820370; bh=sEaSpZYoiZjCaC9fGB32y/jHsflX8WZA4MuboleM12M=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=U7fJqoZNBvJ60xYxewcZePdyQFNzquuxHnJkdvV0pySUlnrdFGKFYvb1+E87hxuqF MzRYouTU9Rwrv6hEYs+TFW75IFi26roTi5wXr2oUbFHldWNNarZKGXykccJW07Fde4 R+lrP/1570RTeMeUXqSv7y0jahMDmr825Yybe/BVfK+IGRm/RAQTu4RI5MMt4RCbqA v1h5NH3I0s8/rJK2sMZjfl6SfIdxLXeoPs8FyVrTkFSsul6T3t8lAVp3yLVHfnNAbI NsjqF/5ZR+wNYYQslowP3iEDJtFcUBejMLvymuooJpEVPqK6i8Zwwu6/al417oMGaS UONykaoWAZdtQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TzHqk1Dcjz6tm4; Tue, 19 Mar 2024 04:52:49 +0100 (CET) From: normalmente Date: Tue, 19 Mar 2024 03:50:35 +0000 Message-ID: <440ea92d5f450aa18e306519d442685cd380749d.1710817680.git.normally_js@posteo.net> In-Reply-To: References: MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/crates-io.scm (rust-which-6): New variable. Change-Id: Ib45002331c9ab06ed2d4584028ad9254cce99208 --- gnu/packages/crates-io.scm | 46 ++++++++++++++++++++++++++++++-------- 1 file changed, 37 insertions(+), 9 deletions(-) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index a50417eb89..f70e756037 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -78498,8 +78498,43 @@ (define-public rust-wepoll-sys-stjepang-1 using @code{bindgen}.") (license license:mpl2.0))) +(define-public rust-which-6 + (package + (name "rust-which") + (version "6.0.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "which" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "070hbvl3hjxywychmz7nj5gbsprdm38rir3kqnm48zzp1g0y19bz")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-test-flags + '("--release" "--" + ;; Not all files included. + "--skip=it_works") + #:cargo-inputs + (("rust-either" ,rust-either-1) + ("rust-home" ,rust-home-0.5) + ("rust-once-cell" ,rust-once-cell-1) + ("rust-regex" ,rust-regex-1) + ("rust-rustix" ,rust-rustix-0.38) + ("rust-windows-sys" ,rust-windows-sys-0.52)) + #:cargo-development-inputs + (("rust-tempfile" ,rust-tempfile-3)))) + (home-page "https://github.com/harryfei/which-rs.git") + (synopsis "Rust equivalent of @command{which}") + (description + "This package provides a cross-platform Rust equivalent of the +Unix @command{which} command. It returns the full path of an installed +executable.") + (license license:expat))) + (define-public rust-which-5 (package + (inherit rust-which-6) (name "rust-which") (version "5.0.0") (source @@ -78514,7 +78549,6 @@ (define-public rust-which-5 '(begin (substitute* "Cargo.toml" (("\"= *([[:digit:]]+(\\.[[:digit:]]+)*)" _ version) (string-append "\"^" version))))))) - (build-system cargo-build-system) (arguments `(#:cargo-test-flags '("--release" "--" @@ -78526,14 +78560,8 @@ (define-public rust-which-5 ("rust-regex" ,rust-regex-1) ("rust-rustix" ,rust-rustix-0.38) ("rust-windows-sys" ,rust-windows-sys-0.48)) - #:cargo-development-inputs (("rust-tempfile" ,rust-tempfile-3)))) - (home-page "https://github.com/harryfei/which-rs.git") - (synopsis "Rust equivalent of @command{which}") - (description - "This package provides a cross-platform Rust equivalent of the -Unix @command{which} command. It returns the full path of an installed -executable.") - (license license:expat))) + #:cargo-development-inputs (("rust-tempfile" ,rust-tempfile-3)))))) + (define-public rust-which-4 (package