From patchwork Tue Oct 24 14:47:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomas Volf X-Patchwork-Id: 55290 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 E744627BBEA; Tue, 24 Oct 2023 15:50:57 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_ADSP_ALL, DKIM_INVALID,DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS, URIBL_BLOCKED autolearn=no 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 E8DB827BBE2 for ; Tue, 24 Oct 2023 15:50:56 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qvIju-0000GS-Rv; Tue, 24 Oct 2023 10:50:39 -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 1qvIjo-0000D1-VY for guix-patches@gnu.org; Tue, 24 Oct 2023 10:50:33 -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 1qvIjo-0005LC-LE for guix-patches@gnu.org; Tue, 24 Oct 2023 10:50:32 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qvIkI-0008Pj-5L; Tue, 24 Oct 2023 10:51:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#66729] [PATCH] gnu: Add rust-cbindgen-0.26. Resent-From: Tomas Volf Original-Sender: "Debbugs-submit" Resent-CC: efraim@flashner.co.il, guix-patches@gnu.org Resent-Date: Tue, 24 Oct 2023 14:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 66729 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 66729@debbugs.gnu.org Cc: Tomas Volf , Efraim Flashner X-Debbugs-Original-To: guix-patches@gnu.org X-Debbugs-Original-Xcc: Efraim Flashner Received: via spool by submit@debbugs.gnu.org id=B.169815902132276 (code B ref -1); Tue, 24 Oct 2023 14:51:01 +0000 Received: (at submit) by debbugs.gnu.org; 24 Oct 2023 14:50:21 +0000 Received: from localhost ([127.0.0.1]:56152 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qvIjd-0008OV-1L for submit@debbugs.gnu.org; Tue, 24 Oct 2023 10:50:21 -0400 Received: from lists.gnu.org ([2001:470:142::17]:44622) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qvIjY-0008OC-Tb for submit@debbugs.gnu.org; Tue, 24 Oct 2023 10:50:19 -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 1qvIiz-00081Z-My for guix-patches@gnu.org; Tue, 24 Oct 2023 10:49:41 -0400 Received: from wolfsden.cz ([37.205.8.62]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qvIiv-00053r-NA for guix-patches@gnu.org; Tue, 24 Oct 2023 10:49:41 -0400 Received: by wolfsden.cz (Postfix, from userid 104) id B8AFC27320B; Tue, 24 Oct 2023 14:49:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1698158970; bh=/xJ78HSwAbb3bh+Ng8RebCIyEPIFvml7WuVDsajUsjY=; h=From:To:Cc:Subject:Date; b=nlwcs+KebiIZJzHCjOoKa+qojQsmRi3qE0JNDabAv5AtRpl6coJEUiCnYZLA0UUol hj5APVfteCfASSooGVfFphe4zwHFguxVyXOJrBfRZLojQA6DWZxJXSqMjTMBfIdxpS 3fMYdFJwOhk1eJ1tWeK0cHAR2FiaGoNLrNu7bw0PkjBmtM9dgBroTkTD4rinqIO7ks Igco+HBF2XLOxx3AsBPz1SIo9+mc2lPapTyB1xZ167f+htmDPrhX7mLr8vGaYHRe0g YLTnpJNmwT6ObXnPrjFm654fLpJBSO5A7qOWXHl2fCpZ95iX4mBYJnnBqkv3T2INGg uqMUeUpV+D8tybaMh8H4J1ZyOb9+qZT/jEXjLboStGiAQpBe6W4cdpq50Vi8mhi4mf f48hYi3csAJDi1ZFXmfv4fwj/vFisAYYqRL+5gM8SAkoXtYka5PWIY0I/gG65sPS3b 8mhV7TP7TQzm8rCQQHmUviGFVHIKBvDotwBHwAtBCclQchTz8LEkusDDaCjKdL4RKm tN3g22V8LNO1KKdUxz3oztqdSZA3YbCJOPVMhtx6/83suzp+2/m40cHQwBa3NG+bq0 z6BsgZNlp5/B97xpaAnenR5IXWds47kHV7tYq74YoMerqsgxEvJatwsRzZiS/9lfGb XsHE/QvHpgfJq7x9dbgJZUBQ= Received: from localhost (unknown [193.32.127.171]) by wolfsden.cz (Postfix) with ESMTPSA id 4324227350B; Tue, 24 Oct 2023 14:49:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1698158968; bh=/xJ78HSwAbb3bh+Ng8RebCIyEPIFvml7WuVDsajUsjY=; h=From:To:Cc:Subject:Date; b=lyCe+guZsuEzdenx4ZrR78wu/HQ7lzJkDKCo/bKvlZzzCOA/0zXJQG+xXruH/tFiI 9ATvdS7rmcp0AAN9NdxJPipAf1yVQ78zZZysDjnPeLOjA9io7VeOzZzpjm/VJlCpWf thpm0jfLrsRw2W5rR3zkE+hYYHNHv6no1JEWPeNyzCil6rA0ZHf5HSrT3CKx6wpo9Z JikG3rY6Ji9jjv3n80iVmrycDA20Yv9mxvK+qZukWXR74xSOkJnrzaftM0sekY59EX uEMxxZ0AvSdaqHV4pfX4BWMxjbsLrrkwH+1NVIjuUhSG7/ba/0xTJF49YZqjC6HNh5 0pWLyswEkJDnlc+ugyd+nkuctDmQFF15Sg9kB0oOui1vZWEB6+wG6gVjGV96PUILcW Vb8RsJI5behT5sSo6h9cqZr7cEKjwAxoxke4tuQCeHfqQzNJpt4awNEKz2iWVwhaEg 5XshGSnNmaao8QDmodDF0DfzmhnO/mGR5OiHEM/Dh3XGR4MZ5dnq41RDzk+EbUqEMw Ku2Sfohn90GNVKxf/2b884B+3npZTS+I6IXP4H4+D70I1w1/3g0Y5iTEdfaGUGNArW bj556F0e+tLjf8lEBwsagKRA75xF0fsDa4tTmRWQtOnZjlSdLocEn6z2DBUhm+K3eU 7dsJIxZkGDrOa2YPy4Zp+d2M= Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id 74b28817; Tue, 24 Oct 2023 14:49:25 +0000 (UTC) From: Tomas Volf Date: Tue, 24 Oct 2023 16:47:52 +0200 Message-ID: <3123036ee09665554505c0be483af632c1afc52c.1698158872.git.wolf@wolfsden.cz> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Received-SPF: none client-ip=37.205.8.62; envelope-from=ws@wolfsnet.cz; helo=wolfsden.cz X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25, SPF_HELO_PASS=-0.001, SPF_NONE=0.001, UNPARSEABLE_RELAY=0.001 autolearn=no autolearn_force=no X-Spam_action: no action 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/rust-apps.scm (rust-cbindgen-0.26): New variable. (rust-cbindgen-0.24): Inherit from rust-cbindgen-0.26. Change-Id: Id17f8e251ceecc8ae0708dcfc19acfc5c56b824f --- The formating of the arguments and the native-inputs is a bit different than before, but this is what guix style did produce. gnu/packages/rust-apps.scm | 58 ++++++++++++++++++++++---------------- 1 file changed, 34 insertions(+), 24 deletions(-) base-commit: bd34d5818842871e83aac12305263a821220d124 diff --git a/gnu/packages/rust-apps.scm b/gnu/packages/rust-apps.scm index 4a4247751b..a06447143a 100644 --- a/gnu/packages/rust-apps.scm +++ b/gnu/packages/rust-apps.scm @@ -1370,35 +1370,45 @@ (define-public rust-cbindgen "This package provides a tool for generating C/C++ bindings to Rust code.") (license license:mpl2.0))) -(define-public rust-cbindgen-0.24 +(define-public rust-cbindgen-0.26 (package (inherit rust-cbindgen) (name "rust-cbindgen") + (version "0.26.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "cbindgen" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0jdbxmn5h5nlr4bifx85gny309djv5djs9q78fa1d7sj0wdw2sys")))) + (arguments + `(#:cargo-inputs (("rust-clap" ,rust-clap-3) + ("rust-heck" ,rust-heck-0.4) + ("rust-indexmap" ,rust-indexmap-1) + ("rust-log" ,rust-log-0.4) + ("rust-proc-macro2" ,rust-proc-macro2-1) + ("rust-quote" ,rust-quote-1) + ("rust-serde" ,rust-serde-1) + ("rust-serde-json" ,rust-serde-json-1) + ("rust-syn" ,rust-syn-1) + ("rust-tempfile" ,rust-tempfile-3) + ("rust-toml" ,rust-toml-0.5)) + #:cargo-development-inputs (("rust-serial-test" ,rust-serial-test-0.5)))) + (native-inputs (list python-cython)))) + +(define-public rust-cbindgen-0.24 + (package + (inherit rust-cbindgen-0.26) + (name "rust-cbindgen") (version "0.24.3") (source (origin - (method url-fetch) - (uri (crate-uri "cbindgen" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "1yqxqsz2d0cppd8zwihk2139g5gy38wqgl9snj6rnk8gyvnqsdd6")))) - (arguments - `(#:cargo-inputs - (("rust-clap" ,rust-clap-3) - ("rust-heck" ,rust-heck-0.4) - ("rust-indexmap" ,rust-indexmap-1) - ("rust-log" ,rust-log-0.4) - ("rust-proc-macro2" ,rust-proc-macro2-1) - ("rust-quote" ,rust-quote-1) - ("rust-serde" ,rust-serde-1) - ("rust-serde-json" ,rust-serde-json-1) - ("rust-syn" ,rust-syn-1) - ("rust-tempfile" ,rust-tempfile-3) - ("rust-toml" ,rust-toml-0.5)) - #:cargo-development-inputs - (("rust-serial-test" ,rust-serial-test-0.5)))) - (native-inputs - (list python-cython)))) + (method url-fetch) + (uri (crate-uri "cbindgen" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1yqxqsz2d0cppd8zwihk2139g5gy38wqgl9snj6rnk8gyvnqsdd6")))))) (define-public rust-cbindgen-0.23 (package