From patchwork Mon May 1 18:25:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Evgeny Pisemsky X-Patchwork-Id: 49729 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 A935027BBE9; Mon, 1 May 2023 19:27:25 +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=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,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 DC9DD27BBE2 for ; Mon, 1 May 2023 19:27:23 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ptYEu-0005TP-Gc; Mon, 01 May 2023 14:27:08 -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 1ptYEp-0005T6-Ro for guix-patches@gnu.org; Mon, 01 May 2023 14:27:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ptYEp-0006gn-J9 for guix-patches@gnu.org; Mon, 01 May 2023 14:27:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ptYEo-0001mj-Mp for guix-patches@gnu.org; Mon, 01 May 2023 14:27:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#63211] [PATCH] gnu: Add usbrelay. Resent-From: Evgeny Pisemsky Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 01 May 2023 18:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 63211 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 63211@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16829655706789 (code B ref -1); Mon, 01 May 2023 18:27:02 +0000 Received: (at submit) by debbugs.gnu.org; 1 May 2023 18:26:10 +0000 Received: from localhost ([127.0.0.1]:41003 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ptYDx-0001lP-Un for submit@debbugs.gnu.org; Mon, 01 May 2023 14:26:10 -0400 Received: from lists.gnu.org ([209.51.188.17]:56322) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ptYDv-0001lH-FG for submit@debbugs.gnu.org; Mon, 01 May 2023 14:26:08 -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 1ptYDv-0005G3-6J for guix-patches@gnu.org; Mon, 01 May 2023 14:26:07 -0400 Received: from sofi-shared.hosting.energy ([2001:41d0:602:1f56::] helo=sofi.hosting.energy) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ptYDq-0006OL-Cl for guix-patches@gnu.org; Mon, 01 May 2023 14:26:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=pisemsky.com; s=dkim; h=Content-Transfer-Encoding:Content-Type:MIME-Version :Message-ID:Date:Subject:To:From:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=62TD648cKf8p0velt4CMxnpi7fdV5EEyn8dp6TIhT4Y=; b=X3zShvAXJYzcxiTEYtaJPyTUan aDffvOTFG6du5x5Ma8+vUbGTUJkiURyLx7a+8d+I2XIV0s9oOkW49y0bQz5sNt7UZvN3+h6mt/cig nsjZEOMAsI06HdqpEcfYmrFOOFE7ALdOWqIX2JDciYZfaJUCe5yBu3HQGIK04JM0dVT0=; Received: from node-41-190-35-212.domolink.tula.net ([212.35.190.41] helo=laptop) by sofi.hosting.energy with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1ptYDc-0007o9-3m for guix-patches@gnu.org; Mon, 01 May 2023 21:25:48 +0300 From: Evgeny Pisemsky Date: Mon, 01 May 2023 21:25:46 +0300 Message-ID: <87pm7j6h91.fsf@pisemsky.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Disposition: attachment; filename=0001-gnu-Add-usbrelay.patch Received-SPF: pass client-ip=2001:41d0:602:1f56::; envelope-from=evgeny@pisemsky.com; helo=sofi.hosting.energy X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, T_SPF_HELO_PERMERROR=0.01 autolearn=ham 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 From dacf7010defa351fae323786a5112904215b5478 Mon Sep 17 00:00:00 2001 From: Evgeny Pisemsky Date: Mon, 1 May 2023 21:09:42 +0300 Subject: [PATCH] gnu: Add usbrelay. * gnu/packages/hardware.scm (usbrelay): New variable. --- gnu/packages/hardware.scm | 36 +++++++++++++++++++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) diff --git a/gnu/packages/hardware.scm b/gnu/packages/hardware.scm index 5b85ad9b2e..365fb88ae0 100644 --- a/gnu/packages/hardware.scm +++ b/gnu/packages/hardware.scm @@ -2,7 +2,7 @@ ;;; Copyright © 2018–2022 Tobias Geerinckx-Rice ;;; Copyright © 2020 Jan (janneke) Nieuwenhuizen ;;; Copyright © 2020 Brice Waegeneire -;;; Copyright © 2021 Evgeny Pisemsky +;;; Copyright © 2021, 2023 Evgeny Pisemsky ;;; Copyright © 2021 Léo Le Bouter ;;; Copyright © 2021 Denis Carikli ;;; Copyright © 2021, 2022 Petr Hodina @@ -1438,3 +1438,37 @@ (define-public lxi-tools on the LXI Consortium standard which defines the communication protocols for modern instrumentation and data acquision systems using Ethernet.") (license license:bsd-3))) + +(define-public usbrelay + (package + (name "usbrelay") + (version "1.2") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/darrylb123/usbrelay") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0fr3wglr2c6myg4k6ai2p5z38prclcnk2ngik15sq16fnp6qg750")))) + (build-system gnu-build-system) + (arguments + `(#:phases (modify-phases %standard-phases + (delete 'configure)) + #:make-flags (let* ((out (assoc-ref %outputs "out")) + (lib (string-append out "/lib"))) + (list (string-append "CC=" ,(cc-for-target)) + (string-append "PREFIX=" out) + (string-append "LDFLAGS=-Wl,-rpath=" lib) + "LDCONFIG=true" + "USBMAJOR=$(USBLIBVER)")) + #:tests? #f)) + (inputs (list hidapi)) + (home-page "https://github.com/darrylb123/usbrelay") + (synopsis "Control USB relay modules") + (description + "This is a Linux driver based on hidapi for a variety of inexpensive +HID compatible USB relay modules available with different number of +output relays.") + (license license:gpl2+))) base-commit: 23552fb2fbcb78757e8b563de9466831f6386105 -- 2.39.2