From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 2HlrENR3tWBxWwAAgWs5BA (envelope-from ) for ; Tue, 01 Jun 2021 01:57:08 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id qHm0C9R3tWBELgAAB5/wlQ (envelope-from ) for ; Mon, 31 May 2021 23:57:08 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 5BB5B9929 for ; Tue, 1 Jun 2021 01:57:07 +0200 (CEST) Received: from localhost ([::1]:47738 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lnrmM-0001rp-BV for larch@yhetil.org; Mon, 31 May 2021 19:57:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40736) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lnrmI-0001rY-KI for guix-patches@gnu.org; Mon, 31 May 2021 19:57:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:51950) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lnrmI-0003vy-DA for guix-patches@gnu.org; Mon, 31 May 2021 19:57:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lnrmI-0005iE-9G for guix-patches@gnu.org; Mon, 31 May 2021 19:57:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#48671] [PATCH 1/9] gnu: Add nitrocli. References: <20210526035755.79632-1-antero@kodmin.com> In-Reply-To: <20210526035755.79632-1-antero@kodmin.com> Resent-From: Antero Mejr Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 31 May 2021 23:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48671 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 48671@debbugs.gnu.org Cc: Antero Mejr Received: via spool by 48671-submit@debbugs.gnu.org id=B48671.162250540121863 (code B ref 48671); Mon, 31 May 2021 23:57:02 +0000 Received: (at 48671) by debbugs.gnu.org; 31 May 2021 23:56:41 +0000 Received: from localhost ([127.0.0.1]:35241 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lnrlx-0005gZ-0C for submit@debbugs.gnu.org; Mon, 31 May 2021 19:56:41 -0400 Received: from mout-p-102.mailbox.org ([80.241.56.152]:31166) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lnrlu-0005gJ-Ow for 48671@debbugs.gnu.org; Mon, 31 May 2021 19:56:40 -0400 Received: from smtp2.mailbox.org (smtp2.mailbox.org [80.241.60.241]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-102.mailbox.org (Postfix) with ESMTPS id 4FvBym3nz1zQjml; Tue, 1 Jun 2021 01:56:32 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kodmin.com; s=MBO0001; t=1622505390; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=AMEvR0q7PJA8F8i6DL/gwPX+klBENtWftNf1qFngK7Q=; b=SvafL1Tf7uMQuCuTWUqfXXvF0H+aMZyJe8AzKWCKKmoBcrxk4rekcwfo/1k5Lfft4jWc60 0ZLl35y3GhhUjhRDl23T6b5VkvxoAvlX04bxECOG0g1/fy8DCfvuqK5AGnFdxiqNNSd63w u16rlxe0WhytLXrMwJOmUOEmehIAfwN3CLbUbpWWZ3wcMzyso1dZFlMR+7zXu8uLXFDMr7 JsaBorXDOaoN6nRcPE2Me49Y/utX/zR5sZGCHT4T+Sgz467zqnk6JgcOtbWLLGOrKlzgRz nAYBDQud9ju9snoNulltaK2G7ztmH0CQ0OqvJlhvVydXqCANLJXl38nB7d9qQA== Received: from smtp2.mailbox.org ([80.241.60.241]) by hefe.heinlein-support.de (hefe.heinlein-support.de [91.198.250.172]) (amavisd-new, port 10030) with ESMTP id oASfKk7gtZb7; Tue, 1 Jun 2021 01:56:28 +0200 (CEST) From: Antero Mejr Date: Mon, 31 May 2021 19:55:34 -0400 Message-Id: <20210531235542.43130-1-antero@kodmin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-MBO-SPAM-Probability: X-Rspamd-Score: -8.68 / 15.00 / 15.00 X-Rspamd-Queue-Id: 4A8841802 X-Rspamd-UID: b5bb40 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1622505427; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=AMEvR0q7PJA8F8i6DL/gwPX+klBENtWftNf1qFngK7Q=; b=IBbLR3wfEOeTCksjD2Td4CP2G96WilTBukIZf9tT7k9tg9xkIkb0XVfVziLKwDxnmWNfCo nJSK2VZ0dtMFXyBf0p23N51O6uxYFcjdD5m/DgaGpNlg8qK/8xOOjcyifDXI5OqYiUNeDT b/VlgGtDNDLBsK+rWmFWqAmtJd1T9NX+Ct1rUMViA6me5c9sV4OtloNRH3iru+WhpSeGRD wU8E883652E6cj41txE6IvyZIwjKC5tU8uOwPF1NZyZTg+DrFyUZLIN3vg1FLtYNu2WMBf FswXma/+xiXa6stymrEUKmvYghVhiQfqxLPUv9mR83wGhAjrM8Y5jrKNtxyXag== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1622505427; a=rsa-sha256; cv=none; b=IP/NwTxtP7RBVwrRaQ+ZEoU+npT5y7TILltCdCaZN12PPfoXpPbmF8MpBQd4mMD+i72k/K arhlA77kz0BBAKGlk7syKV3t3t1QeQ/kIHU4oVMp7C5j+GRBQlEHBpg/K09OWkwp9dCd8I yS6ABEkb5WkpJ6nyGzSVGJsEUg/p0+mMWTC6RX0z9owvl3T1T6O5hv0nNUC8qCRFQg0Pr9 n3dpDDYqdwv/lxbALxIWLkUPrSGcJlR7kKPP61a9HAbBZqRgYWfjkjASvBcXJEigN5JMYO LbDgVyJQ64qGwjhDeiTCrDE1/eifyK97gQRpuezMJHUu9um26+mP7phVyYvCRw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=kodmin.com header.s=MBO0001 header.b=SvafL1Tf; dmarc=fail reason="SPF not aligned (relaxed)" header.from=kodmin.com (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -0.33 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=kodmin.com header.s=MBO0001 header.b=SvafL1Tf; dmarc=fail reason="SPF not aligned (relaxed)" header.from=kodmin.com (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 5BB5B9929 X-Spam-Score: -0.33 X-Migadu-Scanner: scn1.migadu.com X-TUID: tEZ8tO4ELiuQ * gnu/packages/security-token.scm (nitrocli): New variable. --- Updated patch set with the requested changes. gnu/packages/security-token.scm | 46 +++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/gnu/packages/security-token.scm b/gnu/packages/security-token.scm index dfa43bb2bf..8f16984341 100644 --- a/gnu/packages/security-token.scm +++ b/gnu/packages/security-token.scm @@ -9,6 +9,7 @@ ;;; Copyright © 2018, 2019 Chris Marusich ;;; Copyright © 2018 Arun Isaac ;;; Copyright © 2020 Raphaël Mélotte +;;; Copyright © 2021 Antero Mejr ;;; ;;; This file is part of GNU Guix. ;;; @@ -32,6 +33,7 @@ #:use-module (guix download) #:use-module (guix gexp) #:use-module (guix git-download) + #:use-module (guix build-system cargo) #:use-module (guix build-system gnu) #:use-module (guix build-system glib-or-gtk) #:use-module (guix build-system python) @@ -39,6 +41,7 @@ #:use-module (gnu packages base) #:use-module (gnu packages curl) #:use-module (gnu packages check) + #:use-module (gnu packages crates-io) #:use-module (gnu packages docbook) #:use-module (gnu packages documentation) #:use-module (gnu packages dns) @@ -674,3 +677,46 @@ that after installing this package, you might still need to add appropriate udev rules to your system configuration to be able to configure the YubiKey as an unprivileged user.") (license license:bsd-2))) + +(define-public nitrocli + (package + (name "nitrocli") + (version "0.4.1") + (source (origin + (method url-fetch) + (uri (crate-uri "nitrocli" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1djspfvcqjipg17v8hkph8xrhkdg1xqjhq5jk1sr8vr750yavidy")))) + (build-system cargo-build-system) + (arguments + `(#:tests? #f ;; 2/164 tests fail, nitrocli-ext tests failing + #:cargo-inputs + (("rust-anyhow" ,rust-anyhow-1) + ("rust-base32" ,rust-base32-0.4) + ("rust-directories" ,rust-directories-3) + ("rust-envy" ,rust-envy-0.4) + ("rust-libc-0.2" ,rust-libc-0.2) + ("rust-merge" ,rust-merge-0.1) + ("rust-nitrokey" ,rust-nitrokey-0.9) + ("rust-progressing" ,rust-progressing-3) + ("rust-serde" ,rust-serde-1) + ("rust-structopt" ,rust-structopt-0.3.21) + ("rust-termion" ,rust-termion-1) + ("rust-toml" ,rust-toml-0.5)) + #:cargo-development-inputs + (("rust-nitrokey-test" ,rust-nitrokey-test-0.5) + ("rust-nitrokey-test-state" ,rust-nitrokey-test-state-0.1) + ("rust-regex" ,rust-regex-1) + ("rust-tempfile" ,rust-tempfile-3)))) + (inputs + `(("hidapi" ,hidapi) + ("gnupg" ,gnupg))) + (home-page "https://github.com/d-e-s-o/nitrocli") + (synopsis "Command line tool for Nitrokey devices") + (description + "nitrocli is a program that provides a command line interface +for interaction with Nitrokey Pro, Nitrokey Storage, and Librem Key +devices.") + (license license:gpl3+))) -- 2.31.1