From patchwork Thu Apr 16 16:20:44 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Becze X-Patchwork-Id: 21296 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 D9A3B27BBE4; Thu, 16 Apr 2020 17:21:20 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED,T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id A143E27BBE1 for ; Thu, 16 Apr 2020 17:21:20 +0100 (BST) Received: from localhost ([::1]:36696 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jP7GQ-0003wf-L8 for patchwork@mira.cbaines.net; Thu, 16 Apr 2020 12:21:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56667) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jP7GD-0003uw-J4 for guix-patches@gnu.org; Thu, 16 Apr 2020 12:21:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jP7GA-0006UJ-0n for guix-patches@gnu.org; Thu, 16 Apr 2020 12:21:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:55876) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jP7G9-0006Tz-QD for guix-patches@gnu.org; Thu, 16 Apr 2020 12:21:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jP7G9-0004Do-LU for guix-patches@gnu.org; Thu, 16 Apr 2020 12:21:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#40666] [PATCH 2/2] gnu: Add trezord-udev-rules. References: <20200416161713.3466-1-mjbecze@riseup.net> In-Reply-To: <20200416161713.3466-1-mjbecze@riseup.net> Resent-From: Martin Becze Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 16 Apr 2020 16:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40666 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 40666@debbugs.gnu.org Cc: Martin Becze Received: via spool by 40666-submit@debbugs.gnu.org id=B40666.158705406016213 (code B ref 40666); Thu, 16 Apr 2020 16:21:01 +0000 Received: (at 40666) by debbugs.gnu.org; 16 Apr 2020 16:21:00 +0000 Received: from localhost ([127.0.0.1]:39189 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jP7G8-0004DR-Aa for submit@debbugs.gnu.org; Thu, 16 Apr 2020 12:21:00 -0400 Received: from mx1.riseup.net ([198.252.153.129]:34564) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jP7G7-0004DJ-1m for 40666@debbugs.gnu.org; Thu, 16 Apr 2020 12:20:59 -0400 Received: from capuchin.riseup.net (unknown [10.0.1.176]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "Sectigo RSA Domain Validation Secure Server CA" (not verified)) by mx1.riseup.net (Postfix) with ESMTPS id 4934GL2TGYzFcvN for <40666@debbugs.gnu.org>; Thu, 16 Apr 2020 09:20:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1587054058; bh=L01ujddrxny4DLcfru97Ns9vWU6i9xo+WOe/3L+wZHU=; h=From:To:Cc:Subject:Date:From; b=shHcMHLBnMGBodo/VnqWRDghK3v2WbfmpT1BbNZLP1yW6bI78fpVicxtJKlogQ1ux I/FLWOSjMJUU2Tw/HwOWC7KsdwlxyI8Z4YMD8vN5XuBb7QKZy7UfUy0QAgUyH+vDj+ GcRpQWKkGScVVb7IIUMe9ua2EdOtzMX3Fj1dxUFc= X-Riseup-User-ID: 698C05182638AC284AC4A4DFF3AF771453C319C1F2A81E98758A15AF8FA05B9F Received: from [127.0.0.1] (localhost [127.0.0.1]) by capuchin.riseup.net (Postfix) with ESMTPSA id 4934GK4BJTz8tP5; Thu, 16 Apr 2020 09:20:57 -0700 (PDT) From: Martin Becze Date: Thu, 16 Apr 2020 11:20:44 -0500 Message-Id: <20200416162044.3548-1-mjbecze@riseup.net> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/finance.scm (trezord-udev-rules): New variable. --- gnu/packages/finance.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/finance.scm b/gnu/packages/finance.scm index 0c05530a31..66ca35483c 100644 --- a/gnu/packages/finance.scm +++ b/gnu/packages/finance.scm @@ -41,6 +41,7 @@ #:use-module (guix git-download) #:use-module (guix build-system gnu) #:use-module (guix build-system cmake) + #:use-module (guix build-system copy) #:use-module (guix build-system emacs) #:use-module (guix build-system python) #:use-module (guix build-system glib-or-gtk) @@ -1165,6 +1166,33 @@ information.") (home-page "https://grisbi.org") (license license:gpl2+))) +(define-public trezord-udev-rules + (let ((commit "bff7fdfe436c727982cc553bdfb29a9021b423b0") + (revision "0")) + (package + (name "trezord-udev-rules") + (version (git-version "0.0.0" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/trezor/trezor-common.git") + (commit commit))) + (sha256 + (base32 + "14mrirrn68if7ja6qdk9qlxs1hv0f21vrxy5ncnms0gx9iwakp2l")) + (file-name (git-file-name name version)))) + (build-system copy-build-system) + (arguments + '(#:install-plan + '(("./udev/51-trezor.rules" "lib/udev/rules.d/")))) + (home-page "https://github.com/trezor/trezor-common") + (synopsis "The udev rules for trezord.") + (description + "This contains the udev rules for trezord. This will let a user run +trezord as a regular user instead of needing to it run as root.") + (license license:lgpl3+)))) + (define-public trezord (package (name "trezord")