From patchwork Thu Mar 20 21:25:10 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gabriel Santos X-Patchwork-Id: 40544 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 8873827BBEA; Thu, 20 Mar 2025 21:37:45 +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=-6.4 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE, 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 3F10027BBE2 for ; Thu, 20 Mar 2025 21:37:45 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tvNZY-000641-Qd; Thu, 20 Mar 2025 17:37:04 -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 1tvNZW-00060h-JI for guix-patches@gnu.org; Thu, 20 Mar 2025 17:37:02 -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 1tvNZW-0007wq-95 for guix-patches@gnu.org; Thu, 20 Mar 2025 17:37:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=XNBsIDJ5E/XlS6AE4dhXfcr1vpKeHlV98aad4bBB50s=; b=BN8f6jbXX9ZX20V6VjP/UByYMnzjHAwHyGBZYMMPVmtz5U+Yg14icE8agg4zzoqe+3tOBPU0GN2C/xW9uUaJ/tuGgLnBXc12M43M9mvge2KvMsCVzcuoZLXbmer4cLmH7poiduuX43d03Li4b2zBawxD6KafzT0F9uwK73oPndW1BJOpi/kNqJW3S9U56xecGL8Bsf2NoNM3rY6ZPw0Snv68XybJWasg2xHPqx9or9y50aEPI6y7rrF5sO3keiU53l3nJCcjvh5/8xnZqfcRPbAuiCSBwVcZ9YnWk1p8n9QeRbZvgJ3nc450zvYZ5PqOuuuFbA0sR9iL6JzM38oTJQ==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tvNZW-00063h-3e for guix-patches@gnu.org; Thu, 20 Mar 2025 17:37:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#77040] [PATCH v3 05/12] gnu: Add rust-colored-3. Resent-From: Gabriel Santos Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 20 Mar 2025 21:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 77040 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 77040@debbugs.gnu.org Cc: Gabriel Santos Received: via spool by 77040-submit@debbugs.gnu.org id=B77040.174250657922995 (code B ref 77040); Thu, 20 Mar 2025 21:37:02 +0000 Received: (at 77040) by debbugs.gnu.org; 20 Mar 2025 21:36:19 +0000 Received: from localhost ([127.0.0.1]:59288 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tvNYo-0005ym-L5 for submit@debbugs.gnu.org; Thu, 20 Mar 2025 17:36:18 -0400 Received: from layka.disroot.org ([178.21.23.139]:49828) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tvNYb-0005ww-PI for 77040@debbugs.gnu.org; Thu, 20 Mar 2025 17:36:07 -0400 Received: from mail01.disroot.lan (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id C4440260DB; Thu, 20 Mar 2025 22:36:04 +0100 (CET) X-Virus-Scanned: SPAM Filter at disroot.org Received: from layka.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id fNhTjjG3DWKk; Thu, 20 Mar 2025 22:36:03 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1742506563; bh=UduurArevxY9kjJrEzv8O8Gy1GqqE6HM7Fa5b8w2Mas=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=DCxn5zb5GOYRWN3IFAGxCsDqdKx/EFApYIir8mSfmWby9ILrlYqzMUGzIMqVgbgFm flJeJjJRh/9lVP8Qfis9aD/jMa16nRYlCJLjEMoEVaZSFFVkKeANhJXvWTrtzCHAr1 L0C0Ah9HrCdd9xsKJKb10Xk8igbFj4jj1Rkffa0ww02/2L2rcoZSmVGiEDCFQGpFYY bxi3AEWIqZ02n32/Vm1uEizCfy9iWcbyBk7LCmubTgXNqEYU+5DF5D08JyRzdY9o+Y Zha53VgXH5qd1rzltjKco1wPPp356kggpMCVCN2KxBr59R7CzHrvvpmeobXlIg2Xhk 5b0NFHigMMzVg== Date: Thu, 20 Mar 2025 18:25:10 -0300 Message-ID: <20250320213508.28485-6-gabrielsantosdesouza@disroot.org> In-Reply-To: <20250320213508.28485-1-gabrielsantosdesouza@disroot.org> References: <20250320213508.28485-1-gabrielsantosdesouza@disroot.org> 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: Gabriel Santos X-ACL-Warn: , Gabriel Santos via Guix-patches X-Patchwork-Original-From: Gabriel Santos via Guix-patches via From: Gabriel Santos 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-colored-3): New variable. * gnu/packages/crates-io.scm (rust-colored-2): Inherit from rust-colored-3. Change-Id: I2504a360d821814f6b7ddf960b1d7e60e1fcebdc --- gnu/packages/crates-io.scm | 48 +++++++++++++++++++++++++++----------- 1 file changed, 34 insertions(+), 14 deletions(-) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index b89eb8a741..e6b05fc073 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -14069,19 +14069,44 @@ (define-public rust-colorchoice-1 (description "Global override of color control") (license (list license:expat license:asl2.0)))) +(define-public rust-colored-3 + (package + (name "rust-colored") + (version "3.0.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "colored" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0plizddhxc4vgkzdbzky5zggyaqfrmyim2d0n6sb7py9j3nf1q7x")))) + (build-system cargo-build-system) + (arguments + `(#:tests? #f ; Tests expect a real terminal. + #:cargo-inputs + (("rust-windows-sys" ,rust-windows-sys-0.59) + ("rust-ansi-term" ,rust-ansi-term-0.12) + ("rust-insta" ,rust-insta-1.42) + ("rust-rspec" ,rust-rspec-1)))) + (home-page "https://github.com/mackwic/colored") + (synopsis "Add colors in your terminal") + (description + "The most simple way to add colors in your terminal.") + (license license:mpl2.0))) + (define-public rust-colored-2 (package + (inherit rust-colored-3) (name "rust-colored") (version "2.1.0") (source - (origin - (method url-fetch) - (uri (crate-uri "colored" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "1f4h9p64snrnz4x432iza15p4diqjcgpmpvhi956d6r1rq61bwnb")))) - (build-system cargo-build-system) + (origin + (method url-fetch) + (uri (crate-uri "colored" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1f4h9p64snrnz4x432iza15p4diqjcgpmpvhi956d6r1rq61bwnb")))) (arguments `(#:tests? #f #:cargo-inputs @@ -14089,12 +14114,7 @@ (define-public rust-colored-2 ("rust-windows-sys" ,rust-windows-sys-0.48)) #:cargo-development-inputs (("rust-ansi-term" ,rust-ansi-term-0.12) - ("rust-rspec" ,rust-rspec-1.0.0-beta.3)))) - (home-page "https://github.com/mackwic/colored") - (synopsis "Add colors in your terminal") - (description - "The most simple way to add colors in your terminal.") - (license license:mpl2.0))) + ("rust-rspec" ,rust-rspec-1.0.0-beta.3)))))) (define-public rust-colored-1 (package