From patchwork Thu Mar 14 21:16:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Herman Rimm X-Patchwork-Id: 61820 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 5DCFC27BBE9; Thu, 14 Mar 2024 21:19:18 +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=unavailable 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 A07D027BBEA for ; Thu, 14 Mar 2024 21:19:17 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rksTM-0006Ta-JV; Thu, 14 Mar 2024 17:18:44 -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 1rksT9-0006N2-Vx for guix-patches@gnu.org; Thu, 14 Mar 2024 17:18:32 -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 1rksT8-0004X6-Hg for guix-patches@gnu.org; Thu, 14 Mar 2024 17:18:31 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rksTi-0005C9-E1 for guix-patches@gnu.org; Thu, 14 Mar 2024 17:19:06 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#69803] [PATCH rust-team 20/37] gnu: Add rust-litrs-0.4. Resent-From: Herman Rimm Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 14 Mar 2024 21:19:06 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69803 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 69803@debbugs.gnu.org Cc: Herman Rimm Received: via spool by 69803-submit@debbugs.gnu.org id=B69803.171045110819752 (code B ref 69803); Thu, 14 Mar 2024 21:19:06 +0000 Received: (at 69803) by debbugs.gnu.org; 14 Mar 2024 21:18:28 +0000 Received: from localhost ([127.0.0.1]:50846 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rksT6-00058Q-99 for submit@debbugs.gnu.org; Thu, 14 Mar 2024 17:18:28 -0400 Received: from 81-205-150-117.fixed.kpn.net ([81.205.150.117]:38137 helo=email.rimm.ee) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rksSg-00051J-Dc for 69803@debbugs.gnu.org; Thu, 14 Mar 2024 17:18:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rimm.ee; s=herman; t=1710451027; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=r127mya84cZh5wMBkYXobakdIniMx8S0ARQf5irPOQg=; b=RhXXKZRNZrAJssyWncxl5hmJM8q//YVX6AwXCY8jPGOIfJ7RaTz7JCy3SnHxxcoPoGkCl0 IIRtd8o7qoL3aGp6SwDqwnEWWW7SJAykIolUkBEWJ+P/Mm391oYVoYNnmGvCTDLq9+UygL cZMoF0Tf+dSiRG1O7x5eGk9arpSAqgAjrF1P3P4NJ9zj7iHbaJeb1xI7PQTDeYWC3pXE4i ae3hYgFHXRXU+SHypxmiMFWLCIFizta0YjnOeg2Wf7p88njA2ZdqEk+o8vDsj0IDZ8czs3 yMi3DkK5PAUQilcGVEky6qqNvwV8TrcaZDnxcJgVXQoCnPl6+neIPfd7Pa2Gzg== Received: by 81-205-150-117.fixed.kpn.net (OpenSMTPD) with ESMTPSA id 1def9345 (TLSv1.3:TLS_CHACHA20_POLY1305_SHA256:256:NO); Thu, 14 Mar 2024 21:17:06 +0000 (UTC) Date: Thu, 14 Mar 2024 22:16:21 +0100 Message-ID: <20240314211638.6190-20-herman@rimm.ee> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240314211638.6190-1-herman@rimm.ee> References: <20240314211638.6190-1-herman@rimm.ee> 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: Herman Rimm X-ACL-Warn: , Herman Rimm via Guix-patches X-Patchwork-Original-From: Herman Rimm via Guix-patches via From: Herman Rimm 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-litrs-0.4): Add variable. (rust-litrs-0.2): Inherit from rust-litrs-0.4. Change-Id: I0f0a336bd94e08c1211a9171b31583b2f3309dd6 --- gnu/packages/crates-io.scm | 34 +++++++++++++++++++++++++--------- 1 file changed, 25 insertions(+), 9 deletions(-) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 580209c281..c6c87f13ad 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -35586,8 +35586,32 @@ (define-public rust-libtest-mimic-0.3 ("rust-structopt" ,rust-structopt-0.3) ("rust-termcolor" ,rust-termcolor-1)))))) +(define-public rust-litrs-0.4 + (package + (name "rust-litrs") + (version "0.4.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "litrs" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "19cssch9gc0x2snd9089nvwzz79zx6nzsi3icffpx25p4hck1kml")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs (("rust-proc-macro2" ,rust-proc-macro2-1) + ("rust-unicode-xid" ,rust-unicode-xid-0.2)))) + (home-page "https://github.com/LukasKalbertodt/litrs/") + (synopsis "Parse and inspect Rust literals") + (description + "Parse and inspect Rust literals (i.e. tokens in the Rust language +representing fixed values). Particularly useful for proc macros, but +can also be used outside of a proc-macro context.") + (license (list license:expat license:asl2.0)))) + (define-public rust-litrs-0.2 (package + (inherit rust-litrs-0.4) (name "rust-litrs") (version "0.2.3") (source (origin @@ -35596,16 +35620,8 @@ (define-public rust-litrs-0.2 (file-name (string-append name "-" version ".tar.gz")) (sha256 (base32 "1akrxglqv6dz41jrjr409pjjysd00z5w0949007v52yg6c4mw9zr")))) - (build-system cargo-build-system) (arguments - `(#:cargo-inputs (("rust-proc-macro2" ,rust-proc-macro2-1)))) - (home-page "https://github.com/LukasKalbertodt/litrs/") - (synopsis "Parse and inspect Rust literals") - (description - "Parse and inspect Rust literals (i.e. tokens in the Rust programming -language representing fixed values). Particularly useful for proc macros, but -can also be used outside of a proc-macro context.") - (license (list license:expat license:asl2.0)))) + `(#:cargo-inputs (("rust-proc-macro2" ,rust-proc-macro2-1)))))) (define-public rust-llvm-bitcode-0.1 (package