From patchwork Wed May 21 16:19:55 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Hoppenbrouwers X-Patchwork-Id: 42850 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 9017327BC4A; Wed, 21 May 2025 17:33:38 +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=-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 4396F27BC49 for ; Wed, 21 May 2025 17:33:38 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1uHmMh-0004pB-NF; Wed, 21 May 2025 12:32:23 -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 1uHmCr-0001pm-K7 for guix-patches@gnu.org; Wed, 21 May 2025 12:22:13 -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 1uHmCr-0003PU-3a for guix-patches@gnu.org; Wed, 21 May 2025 12:22:13 -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=zIqpFNNnA/w4GaRyNxVSviyyH7GNW82b5krnIVYGfbI=; b=s9WjlvWaq4LywOj6gjJzfsxQ1kxsVVk/DH/DUmnHbOcnlXxI5bPzmptcNJr47LrSJmpHAki9KNIhT+/2qa9dwIYN1I0TkAPcwMTYoTd8qR84w2QdeJulgtjvp0D7AR6v0BkUFtwc5srcJVORhNFYSK7uGp0oQRooEAgvlaPfoCyTAHRlIr5Eq4DI1UA43pNtTCjB+PeaCrE9aaWYXd/x8cOkPmCrzCfZqrnlMnArzWgFbc4OMe6AbuIf60VXoicPxhd8LAFwwvz/t0zJxfxIRTI3XEXP65QFOxHTj7kKLuygx0SWzh/w8LfC9jsTx1LXTMHWTNDON6TZdBacp1nvyg==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1uHmCq-000362-Rc for guix-patches@gnu.org; Wed, 21 May 2025 12:22:12 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#78539] [PATCH 13/13] gnu: Add wlink@0.1.1 Resent-From: David Hoppenbrouwers Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 21 May 2025 16:22:12 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 78539 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 78539@debbugs.gnu.org Cc: David Hoppenbrouwers Received: via spool by 78539-submit@debbugs.gnu.org id=B78539.174784452611804 (code B ref 78539); Wed, 21 May 2025 16:22:12 +0000 Received: (at 78539) by debbugs.gnu.org; 21 May 2025 16:22:06 +0000 Received: from localhost ([127.0.0.1]:51063 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uHmCi-00033u-6N for submit@debbugs.gnu.org; Wed, 21 May 2025 12:22:05 -0400 Received: from mail.salt-inc.org ([104.244.79.104]:14839 helo=vm0.salt-inc.org) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uHmCN-0002zr-DQ for 78539@debbugs.gnu.org; Wed, 21 May 2025 12:21:44 -0400 Received: from localhost (209.60-130-109.adsl-dyn.isp.belgacom.be [109.130.60.209]) by vm0.salt-inc.org (Postfix) with ESMTPSA id 57648FEDDE; Wed, 21 May 2025 18:21:42 +0200 (CEST) From: David Hoppenbrouwers Date: Wed, 21 May 2025 18:19:55 +0200 Message-ID: <20250521161955.653-13-guix@demindiro.com> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250521161955.653-1-guix@demindiro.com> References: <20250521161955.653-1-guix@demindiro.com> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Wed, 21 May 2025 12:32:21 -0400 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 Change-Id: I222fb1efdaa8311a5ff8ac45a873262ceed04dd5 --- gnu/packages/flashing-tools.scm | 43 +++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/gnu/packages/flashing-tools.scm b/gnu/packages/flashing-tools.scm index e99a38ec2d..db2481b7d5 100644 --- a/gnu/packages/flashing-tools.scm +++ b/gnu/packages/flashing-tools.scm @@ -32,6 +32,7 @@ (define-module (gnu packages flashing-tools) #:use-module ((guix licenses) #:prefix license:) + #:use-module (guix build-system cargo) #:use-module (guix build-system cmake) #:use-module (guix build-system copy) #:use-module (guix build-system gnu) @@ -53,6 +54,9 @@ (define-module (gnu packages flashing-tools) #:use-module (gnu packages boost) #:use-module (gnu packages check) #:use-module (gnu packages compression) + #:use-module (gnu packages crates-apple) + #:use-module (gnu packages crates-io) + #:use-module (gnu packages crates-shell) #:use-module (gnu packages documentation) #:use-module (gnu packages elf) #:use-module (gnu packages embedded) @@ -682,6 +686,45 @@ (define-public wally-cli @url{https://ergodox-ez.com/,ZSA keyboards}.") (license license:expat)))) +(define-public wlink + (package + (name "wlink") + (version "0.1.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "wlink" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "05l6h5d4w181sg00nq0l1808l0zc4fdda6syvgm7ba31glj7xkd4")))) + (build-system cargo-build-system) + (arguments + `(#:install-source? #f + #:cargo-inputs (("rust-anyhow" ,rust-anyhow-1) + ("rust-bitfield" ,rust-bitfield-0.17) + ("rust-clap" ,rust-clap-4) + ("rust-hex" ,rust-hex-0.4) + ("rust-ihex" ,rust-ihex-3) + ("rust-log" ,rust-log-0.4) + ("rust-nu-pretty-hex" ,rust-nu-pretty-hex-0.100) + ("rust-rusb" ,rust-rusb-0.9) + ("rust-simplelog" ,rust-simplelog-0.12) + ("rust-thiserror" ,rust-thiserror-2) + ("rust-object" ,rust-object-0.36) + ("rust-indicatif" ,rust-indicatif-0.17) + ("rust-serialport" ,rust-serialport-4) + ("rust-libloading" ,rust-libloading-0.8) + ("rust-chrono" ,rust-chrono-0.4) + ("rust-clap-verbosity-flag" ,rust-clap-verbosity-flag-2)))) + (native-inputs (list pkg-config)) + (inputs (list eudev libusb)) + (home-page "https://github.com/ch32-rs/wlink") + (synopsis "Unofficial WCH-Link command line tool") + (description + "This package is an unofficial command line tool for use with WCH-Link. +NOTE: This tool is still in development and not ready for production use.") + (license (list license:asl2.0 license:expat)))) + (define-public qdl (let ((commit "13681fcb359c9f9c32a17a91d3dd20df2e413b6d") (revision "1"))