From patchwork Sun May 30 21:42:06 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antero Mejr X-Patchwork-Id: 29695 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 737CA27BC83; Sun, 30 May 2021 22:44:53 +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 9DF1D27BC81 for ; Sun, 30 May 2021 22:44:52 +0100 (BST) Received: from localhost ([::1]:34170 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lnTEp-0005mB-Q6 for patchwork@mira.cbaines.net; Sun, 30 May 2021 17:44:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35258) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lnTE5-0005ju-My for guix-patches@gnu.org; Sun, 30 May 2021 17:44:07 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:48982) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lnTE3-0001kY-Tr 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 1lnTE3-0006XQ-S2 for guix-patches@gnu.org; Sun, 30 May 2021 17:44:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#48671] [PATCH 05/11] gnu: Add rust-nitrokey-0.9. Resent-From: Antero Mejr Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 30 May 2021 21:44:03 +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.162241102424985 (code B ref 48671); Sun, 30 May 2021 21:44:03 +0000 Received: (at 48671) by debbugs.gnu.org; 30 May 2021 21:43:44 +0000 Received: from localhost ([127.0.0.1]:60497 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lnTDk-0006Uu-CN for submit@debbugs.gnu.org; Sun, 30 May 2021 17:43:44 -0400 Received: from mout-p-101.mailbox.org ([80.241.56.151]:22758) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lnTDf-0006U3-EO for 48671@debbugs.gnu.org; Sun, 30 May 2021 17:43:41 -0400 Received: from smtp1.mailbox.org (smtp1.mailbox.org [IPv6:2001:67c:2050:105:465:1:1:0]) (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-101.mailbox.org (Postfix) with ESMTPS id 4FtX3n30cDzQjmP; Sun, 30 May 2021 23:43:33 +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=1622411011; 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: in-reply-to:in-reply-to:references:references; bh=9MjRtapCdKF429NoDAKJK+QDm0psk7ycrnJ2nP7hskU=; b=u22+SSiRZlsrr1hY1ZMqxiZ1dutekWCsLBq5TnOFjUgpnn0tMRLW9Qz8AfEA9Lx28ypPpI ZQ6U0miBTYxI5TM9jyCvKu6YNehpOcFik4DfaZ7HO9HaPID74H101aPq4XLXaHvgChBsQ5 sdlNhX6oqYw3CBzN/ooP7lV0u1qPpqTlLfDkHrjWLl9KmdoMdlxqRO6ClrneQgDq27A6NT +5y6y6rZB9txAxWmCVb17nQhyc6eaTTPssewHSlpU6FexDvpNEZtcDMLz4RrFno3j2glZm uObHEadHb1UpYDPMy2nHZiCSE8G+mnVysv3dKjRYcmGvOLsdXkw3gnZXyrMr7Q== Received: from smtp1.mailbox.org ([80.241.60.240]) by spamfilter06.heinlein-hosting.de (spamfilter06.heinlein-hosting.de [80.241.56.125]) (amavisd-new, port 10030) with ESMTP id saxXhaPKrkPQ; Sun, 30 May 2021 23:43:29 +0200 (CEST) From: Antero Mejr Date: Sun, 30 May 2021 17:42:06 -0400 Message-Id: <20210530214212.11807-5-antero@kodmin.com> In-Reply-To: <20210530214212.11807-1-antero@kodmin.com> References: <20210530214212.11807-1-antero@kodmin.com> MIME-Version: 1.0 X-MBO-SPAM-Probability: X-Rspamd-Score: -1.03 / 15.00 / 15.00 X-Rspamd-Queue-Id: 49292188F X-Rspamd-UID: a0b944 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/crates-io.scm (rust-nitrokey-0.9): New variable. --- gnu/packages/crates-io.scm | 90 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 90 insertions(+) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index e20feb78f2..e41920652e 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -25107,6 +25107,96 @@ selectors. You can use the jQuery-like syntax to query and manipulate an HTML document quickly.") (license (list license:expat license:asl2.0)))) +(define-public rust-nitrokey-0.9 + (package + (name "rust-nitrokey") + (version "0.9.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "nitrokey" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0c8mj52ckvy1311vwxs6jpw16b2bihp5cc811isb96j9slcjvsyx")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-lazy_static" ,rust-lazy-static-1) + ("rust-libc" ,rust-libc-0.2) + ("rust-nitrokey-sys" ,rust-nitrokey-sys-3) + ("rust-rand_core" ,rust-rand-core-0.5)))) + (home-page "https://git.sr.ht/~ireas/nitrokey-rs") + (synopsis "Rust bindings to libnitrokey") + (description + "This package provides bindings to libnitrokey for communication +with Nitrokey devices.") + (license license:expat))) + +(define-public rust-nitrokey-sys-3 + (package + (name "rust-nitrokey-sys") + (version "3.6.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "nitrokey-sys" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "08c3lnb8iqx000jd5rzvrdvv4ihjyw3x3s8q11dw56is0nmjyvws")))) + (build-system cargo-build-system) + (home-page "https://git.sr.ht/~ireas/nitrokey-sys-rs") + (synopsis "Low-level Rust bindings for libnitrokey") + (description + "This package provides low-level bindings to libnitrokey for +communication with Nitrokey devices.") + (license license:lgpl3))) + +(define-public rust-nitrokey-test-0.5 + (package + (name "rust-nitrokey-test") + (version "0.5.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "nitrokey-test" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "197j9r2s4ydzbqfydza6v31mgcsgd29jpidz4psqawjdm49f8lg6")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-proc-macro2" ,rust-proc-macro2-1) + ("quote" ,rust-quote-1) + ("syn" ,rust-syn-1)))) + (home-page "https://github.com/d-e-s-o/nitrokey-test") + (synopsis "Supporting test infrastructure for the nitrokey crate") + (description + "This package provides supporting test infrastructure for the +nitrokey crate and others using it.") + (license license:gpl3+))) + +(define-public rust-nitrokey-test-state-0.1 + (package + (name "rust-nitrokey-test-state") + (version "0.1.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "nitrokey-test-state" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "00w817kl8q3sna924pzl72ybqljny14rdv1ixlj288fmsqp776x5")))) + (build-system cargo-build-system) + (home-page "https://github.com/d-e-s-o/nitrokey-test") + (synopsis "State required and used by the nitrokey-test crate") + (description "This package provides state required and used by the +nitrokey-test crate.") + (license license:gpl3+))) + (define-public rust-nix-0.20 (package (name "rust-nix")