From patchwork Sun May 30 21:42:02 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antero Mejr X-Patchwork-Id: 29698 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 D105427BC83; Sun, 30 May 2021 22:45:07 +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_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, 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 ESMTPS id 4EC7827BC81 for ; Sun, 30 May 2021 22:45:07 +0100 (BST) Received: from localhost ([::1]:35002 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lnTF4-0006QR-DU for patchwork@mira.cbaines.net; Sun, 30 May 2021 17:45:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35256) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lnTE5-0005jt-Ns for guix-patches@gnu.org; Sun, 30 May 2021 17:44:07 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:48972) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lnTE1-0001kS-Qo for guix-patches@gnu.org; Sun, 30 May 2021 17:44:05 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lnTE1-0006WU-Op for guix-patches@gnu.org; Sun, 30 May 2021 17:44:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#48671] [PATCH 01/11] 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: Sun, 30 May 2021 21:44:01 +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.162241100724909 (code B ref 48671); Sun, 30 May 2021 21:44:01 +0000 Received: (at 48671) by debbugs.gnu.org; 30 May 2021 21:43:27 +0000 Received: from localhost ([127.0.0.1]:60481 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lnTDS-0006Th-Vk for submit@debbugs.gnu.org; Sun, 30 May 2021 17:43:27 -0400 Received: from mout-p-201.mailbox.org ([80.241.56.171]:11646) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lnTDP-0006TL-5x for 48671@debbugs.gnu.org; Sun, 30 May 2021 17:43:25 -0400 Received: from smtp1.mailbox.org (smtp1.mailbox.org [80.241.60.240]) (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-201.mailbox.org (Postfix) with ESMTPS id 4FtX3S4TbpzQjlj; Sun, 30 May 2021 23:43:16 +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=1622410994; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=S5yrlxeb3L2rRnUG5vPQYaLKWZTGWn30K6Z/zmhJcoU=; b=dy0V6CY0xx6uSZs1XAxMIkzW0whyVRuwqTz1gEVPzkaBYdaSRybew9I2RAunFtHbRsrfl+ KHpcabA5NXRmhcp6vTGk6mszRJ4rg5ojKqJojHSFDu/FTxWiI87ziQtoUu6Cr48rMt9MUu kI1p19pALwYuv1yrzTOm2HyqwHT1Thn8k52qVkWPqU03JwpmVZlxW4S8iHs2BXPAK06bQt zO5x7r+VyB5qzh75PwfDyQhGSMkOWcDnsnQdu32bz3GUlEydfWVL3kMn6++cRLzI3cfRiI 9RYbIdsj8XymkD5UPVvYRAH38ojr2JyQlBB8/TyuDGzI+q1oNZTedCUCH/IexA== Received: from smtp1.mailbox.org ([80.241.60.240]) by spamfilter01.heinlein-hosting.de (spamfilter01.heinlein-hosting.de [80.241.56.115]) (amavisd-new, port 10030) with ESMTP id vvCYSyx-2S1b; Sun, 30 May 2021 23:43:12 +0200 (CEST) From: Antero Mejr Date: Sun, 30 May 2021 17:42:02 -0400 Message-Id: <20210530214212.11807-1-antero@kodmin.com> MIME-Version: 1.0 X-MBO-SPAM-Probability: X-Rspamd-Score: -0.50 / 15.00 / 15.00 X-Rspamd-Queue-Id: 6421D1884 X-Rspamd-UID: 0fbb96 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" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/security-token.scm (nitrocli): New variable. --- Thanks for the feedback Xinglu, I updated the package descriptions and linted. Resubmitting the patches as separate commits. gnu/packages/security-token.scm | 43 +++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/gnu/packages/security-token.scm b/gnu/packages/security-token.scm index dfa43bb2bf..fcb1123f2b 100644 --- a/gnu/packages/security-token.scm +++ b/gnu/packages/security-token.scm @@ -674,3 +674,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+)))