From patchwork Thu Dec 21 20:55:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jaeme Sifat X-Patchwork-Id: 57963 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 95D7D27BBEA; Thu, 21 Dec 2023 20:58:12 +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,FREEMAIL_FROM,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 05B8127BBE2 for ; Thu, 21 Dec 2023 20:58:12 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rGQ7F-00011o-Q2; Thu, 21 Dec 2023 15:58:02 -0500 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 1rGQ7C-00010v-MI for guix-patches@gnu.org; Thu, 21 Dec 2023 15:57:58 -0500 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 1rGQ7C-0006wR-9G for guix-patches@gnu.org; Thu, 21 Dec 2023 15:57:58 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rGQ7G-0006iz-BZ; Thu, 21 Dec 2023 15:58:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#67958] [PATCH 4/7] gnu: Add rust-which-5. Resent-From: Jaeme Sifat Original-Sender: "Debbugs-submit" Resent-CC: efraim@flashner.co.il, guix-patches@gnu.org Resent-Date: Thu, 21 Dec 2023 20:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67958 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 67958@debbugs.gnu.org Cc: Jaeme Sifat , Efraim Flashner X-Debbugs-Original-Xcc: Efraim Flashner Received: via spool by 67958-submit@debbugs.gnu.org id=B67958.170319222725764 (code B ref 67958); Thu, 21 Dec 2023 20:58:02 +0000 Received: (at 67958) by debbugs.gnu.org; 21 Dec 2023 20:57:07 +0000 Received: from localhost ([127.0.0.1]:45555 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rGQ6M-0006hO-04 for submit@debbugs.gnu.org; Thu, 21 Dec 2023 15:57:06 -0500 Received: from mailtransmit04.runbox.com ([2a0c:5a00:149::25]:40738) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rGQ6K-0006gc-JH for 67958@debbugs.gnu.org; Thu, 21 Dec 2023 15:57:05 -0500 Received: from mailtransmit03.runbox ([10.9.9.163] helo=aibo.runbox.com) by mailtransmit04.runbox.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1rGQ6A-002SOe-PN for 67958@debbugs.gnu.org; Thu, 21 Dec 2023 21:56:54 +0100 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=runbox.com; s=selector2; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To :Message-ID:Date:Subject:Cc:To:From; bh=Q9EJIjUHRPQV9gLjl96Y99t8E+quiQqdtgwzFC20+BI=; b=M3L/3Ko/V9bWf7RjAx85rnlduW a85eSVprNoJmI8C7bM9CKXeTaW4GUdrhOXJpNL4qKgRzLrz4AYOf+LUEPUN3ldjAB/bdbhIIFetOc +z/PvHuIM84CdrHNsktBefJqsjO5JSrzJlL3l0m4wVKQNTCE9nQsEKOn3ozlACojTtiA3/Xw+WnS6 tunn1onuXVzAeqqT5ngEYnpVcsF2zenktaFseGT01aXZhSWwPThq5tAA2jV+3Cq5ZNeCabZy1bSKB j2VPWP9eKEVxYTq2XxdVhZ072iLOVR8Xr0aPyhXy9d4nrFvrmDqomiKzwoKF7D4m1MUi0BA1NKfpt bXTyv2/g==; Received: from [10.9.9.72] (helo=submission01.runbox) by mailtransmit03.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1rGQ6A-0006a7-EL for 67958@debbugs.gnu.org; Thu, 21 Dec 2023 21:56:54 +0100 Received: by submission01.runbox with esmtpsa [Authenticated ID (1176697)] (TLS1.2:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.93) id 1rGQ62-00AvtM-Ft; Thu, 21 Dec 2023 21:56:46 +0100 Date: Thu, 21 Dec 2023 15:55:02 -0500 Message-ID: <88a6ed0f5e24e23fae53bc0d7bbb5ec0221b5626.1703191511.git.jaeme@runbox.com> X-Mailer: git-send-email 2.41.0 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: , Reply-to: Jaeme Sifat X-ACL-Warn: , Jaeme Sifat via Guix-patches X-Patchwork-Original-From: Jaeme Sifat via Guix-patches via From: Jaeme Sifat 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-5): New variable. Change-Id: I6a02f57efc2b80059c8a23ea51bff61cd0713825 --- gnu/packages/crates-io.scm | 41 +++++++++++++++++++++++++++++--------- 1 file changed, 32 insertions(+), 9 deletions(-) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 8fbbe6a658..ea6d6eeb84 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -89608,25 +89608,28 @@ (define-public rust-wepoll-sys-stjepang-1 using @code{bindgen}.") (license license:mpl2.0))) -(define-public rust-which-4 +(define-public rust-which-5 (package (name "rust-which") - (version "4.3.0") + (version "5.0.0") (source (origin (method url-fetch) (uri (crate-uri "which" version)) (file-name (string-append name "-" version ".tar.gz")) (sha256 - (base32 "0yybp94wikf21vkcl8b6w6l5pnd95nl4fxryz669l4lyxsxiz0qw")))) + (base32 "053fpbczryyn8lcbpkvwl8v2rzld0pr30r5lh1cxv87kjs2ymwwv")))) (build-system cargo-build-system) (arguments - (list #:skip-build? #t - #:cargo-inputs - `(("rust-either" ,rust-either-1) - ("rust-libc" ,rust-libc-0.2) - ("rust-once-cell" ,rust-once-cell-1) - ("rust-regex" ,rust-regex-1)))) + `(#:cargo-test-flags '("--release" "--" + "--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.9) + ("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 @@ -89635,6 +89638,26 @@ (define-public rust-which-4 executable.") (license license:expat))) +(define-public rust-which-4 + (package + (inherit rust-which-5) + (name "rust-which") + (version "4.3.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "which" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0yybp94wikf21vkcl8b6w6l5pnd95nl4fxryz669l4lyxsxiz0qw")))) + (arguments + (list #:skip-build? #t + #:cargo-inputs + `(("rust-either" ,rust-either-1) + ("rust-libc" ,rust-libc-0.2) + ("rust-once-cell" ,rust-once-cell-1) + ("rust-regex" ,rust-regex-1)))))) + (define-public rust-which-3 (package (inherit rust-which-4)