From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id yHthFGUHtGB7lgAAgWs5BA (envelope-from ) for ; Sun, 30 May 2021 23:45:09 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id CEJ5D2UHtGAhGQAA1q6Kng (envelope-from ) for ; Sun, 30 May 2021 21:45:09 +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 DD9C31C780 for ; Sun, 30 May 2021 23:45:08 +0200 (CEST) Received: from localhost ([::1]:35002 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lnTF5-0006QR-Rz for larch@yhetil.org; Sun, 30 May 2021 17:45:07 -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 Content-Transfer-Encoding: 8bit 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+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=1622411109; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: 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=S5yrlxeb3L2rRnUG5vPQYaLKWZTGWn30K6Z/zmhJcoU=; b=OZUozlh/zjkZUjjzIKE5pl4hWDmNxvpddOa12LREL2JMM46JH2rs0Y9qMklhmztA22He4d h8kCxPKrDAciW6TgvWBAg/lWZH/isQ5+oA0gKT2HwVz8pLYx4scj9BKZO4bwhVqvFMQIKx 9+VRBgiHxI90a4Hyp4kTk9aZ9PZGsCeMEVYRKJHjaq01OhHkm2Fa+D8h87g/wL3GVC+8QX UiYtNYR/LcFy38arnvxWmJNW3ACambdfsvfONIBNXZNDacW/y3iiUxZeoa294NwjNPgHZK Ydpzg4yuRnxxXURzJsbMKFlqZUb3ST4xl3b7pNh3hpkTjdcelGXAVctrbkUahA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1622411109; a=rsa-sha256; cv=none; b=d/lx3nmLaAeZV2tLxz1rUmOrUHhVUsNs9rLqdNPuu/z9zpx6vNMQ030borfEWDqVJUOwiW zicO662iwk1Y/9Xl9AOqnRkBRNIpz2B7J47pHgoikElbAS3Nd4bz/zfkEwaD6BkG6w67lW OdjmK/eCdbWZ9rbeq9OZt17YRafW/9UkkjAkiq5TXE1/ddnwO3ZY3QHd9ufyBW+CacHwEe lZVggFaM66UinsTN+6gHF0D821vq5p1qKsQqdWIdOA+8xijKzjmcsLkbNpG6KVnkndaDeP d5Pbpz66uCy82YlLZxqT5MQQSorLeEBZT2XPvl9AJ5LiFxA9MO8FqBZIMle0sA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=kodmin.com header.s=MBO0001 header.b=dy0V6CY0; 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: 3.67 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=kodmin.com header.s=MBO0001 header.b=dy0V6CY0; 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: DD9C31C780 X-Spam-Score: 3.67 X-Migadu-Scanner: scn0.migadu.com X-TUID: 0NNW3HPqRCJ3 * 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+))) -- 2.31.1