From patchwork Sat Dec 18 20:49:44 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hartmut Goebel X-Patchwork-Id: 35437 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 629A227BBEB; Sat, 18 Dec 2021 20:54:08 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id B329027BBE9 for ; Sat, 18 Dec 2021 20:54:07 +0000 (GMT) Received: from localhost ([::1]:55098 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mygiU-0000wm-TC for patchwork@mira.cbaines.net; Sat, 18 Dec 2021 15:54:06 -0500 Received: from eggs.gnu.org ([209.51.188.92]:49512) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mygfv-0005Ur-Ra for guix-patches@gnu.org; Sat, 18 Dec 2021 15:51:28 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:60920) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mygfv-0003iX-CJ for guix-patches@gnu.org; Sat, 18 Dec 2021 15:51:27 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mygfv-0004s9-AR for guix-patches@gnu.org; Sat, 18 Dec 2021 15:51:27 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#52642] [PATCH 33/42] gnu: Add rust-sequoia-openpgp-1. Resent-From: Hartmut Goebel Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 18 Dec 2021 20:51:27 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 52642 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 52642@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.163986068518692 (code B ref -1); Sat, 18 Dec 2021 20:51:27 +0000 Received: (at submit) by debbugs.gnu.org; 18 Dec 2021 20:51:25 +0000 Received: from localhost ([127.0.0.1]:44223 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mygft-0004r7-2l for submit@debbugs.gnu.org; Sat, 18 Dec 2021 15:51:25 -0500 Received: from lists.gnu.org ([209.51.188.17]:50950) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mygfj-0004nV-WE for submit@debbugs.gnu.org; Sat, 18 Dec 2021 15:51:16 -0500 Received: from eggs.gnu.org ([209.51.188.92]:49352) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mygfj-0005BG-Ll for guix-patches@gnu.org; Sat, 18 Dec 2021 15:51:15 -0500 Received: from mout.kundenserver.de ([217.72.192.74]:33085) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mygfh-0003XY-QQ for guix-patches@gnu.org; Sat, 18 Dec 2021 15:51:15 -0500 Received: from hermia.goebel-consult.de ([46.87.136.58]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MDyoU-1mopJk2ISa-009uf7 for ; Sat, 18 Dec 2021 21:51:12 +0100 Received: from thisbe.fritz.box (thisbe.fritz.box [192.168.110.24]) by hermia.goebel-consult.de (Postfix) with ESMTP id 7292C66156; Sat, 18 Dec 2021 21:50:11 +0100 (CET) From: Hartmut Goebel Date: Sat, 18 Dec 2021 21:49:44 +0100 Message-Id: <8946747811780e05e1059b5b55e82d3f707725bc.1639859823.git.h.goebel@crazy-compilers.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: References: MIME-Version: 1.0 X-Provags-ID: V03:K1:9r/ITgl9SlyY4Wm5T+3UGAwOYyejecqxnCAITO6yGNnQL09nuOw 2QOkZamw+9FFgovxv1uyK6s2mYXlfuf53zySpQfRkDQfiUmh+PHRQgdsyE9dkTcNJBEHzP9 QNRhrGGMSoriopx5SsnzmSzyDDa4n1XFiGFRaXOlo7dc9IWGxnmj6lx9UXYMtyYTbKFJQnA 0ZYMx3fvKuMgZxczIUzsQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:eWUPsjNw0JY=:Ju/g/TEv9h8kq/fvSBYg15 P2pM3qAcEo96l2Tqx+PpegQoazF8HWXQt3x2PXxpicDBMTX/aO75oVdYlZ7haF2hdyRdGnIjd hnEu177t6i36W6QKoGM2yNmzjrJjYvlXjao+a8JITuyOwC4ndE+D9xK46TzKhZO18Xj45UOZC d87rWJv/VEg/vVWcijG8LyjO3cAilYzFESjRsqFaERwquaPWYHHI7lKuJbTXQhrnlvEIztB2o P0SlCl3dmQtWcybhNg9Ruk6s/3vaP9hGMCv7wBeK3t8vtnd+UsPpgp9qZZO1qjWOLiD+Ga1/O yMaLuLhk/fcAM91To66IlmmTLEOQccTiH7asMhCvh6ogbg7jsfKy8mF+gfJtwx1xbvs5DmVv+ K7ObZID2Z/OFfIK2xMbKLDgCMc8oxkyrH4UQ4u9GW1qo1KiJgOgJcJHNiL1BY6FYaAQvWTUXr X6UK95Np2UHWjSg9+jVinBzqQLGfj4Pma6VqCFh5OU0cYI6fPIxnDXCwPtlOBSFHbBbvV0wcU IyKC3P7s0pTuK5T24mIQVics+32/UsnIR5NluNJSJByrQ5mzBd21sjQaLiv14nzCVGNbc33QR p7XDylMHrejK3hD5is3fIZNa0H17j+M9YzmBM+T/Hb77A4c3d/+e/5f6cxTXs860SOcos4RO7 keYulSj09YfHjSXR96UkqV30knVvx01O8v7y6/uYvLJKDlN6J/CLPLuKS7i700Y7lbsB24gVa ztjCiuf1d8Mf7dQs Received-SPF: none client-ip=217.72.192.74; envelope-from=h.goebel@crazy-compilers.com; helo=mout.kundenserver.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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/sequoia.scm (rust-sequoia-openpgp-1): New variable. --- gnu/packages/sequoia.scm | 87 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 87 insertions(+) diff --git a/gnu/packages/sequoia.scm b/gnu/packages/sequoia.scm index 3757fdd971..dc0e542505 100644 --- a/gnu/packages/sequoia.scm +++ b/gnu/packages/sequoia.scm @@ -39,6 +39,93 @@ #:use-module (gnu packages sqlite) #:use-module (gnu packages tls)) +(define-public rust-sequoia-openpgp-1 + (package + (name "rust-sequoia-openpgp") + (version "1.6.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "sequoia-openpgp" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1mdprsijszkg2j6jk1iq7q1z9yikq598y12m5zbv94fs37xlx3qm")) + (modules '((guix build utils))) + (snippet + ;; Remove dependencies on rust-crypto and win32-cng + '(let* ((other-crypto-pkgs + (list ;; rust-crypto + "aes" "block-modes" "block-padding" "blowfish" "cast5" + "cipher" "des" "digest" "eax" "ed25519-dalek" + "generic-array" "idea" "md-5" "num-bigint-dig" "rand" + "ripemd160" "rsa" "sha-1" "sha2" "twofish" "typenum" + "x25519-dalek" "p256" "rand_core" "rand_core" "ecdsa" + ;; win32-cng + "eax" "winapi" "win-crypto-ng" "ed25519-dalek" + "num-bigint-dig")) + (pkgs-pattern (pk (string-join + (list "^\\[dependencies\\.(" + (string-join other-crypto-pkgs "|") + ")\\]") + "")))) + (substitute* "Cargo.toml" + ((pkgs-pattern line name) (string-append "[off." name "]")) + (("^crypto-cng =" line) (string-append "# " line)) + (("^crypto-rust =" line) (string-append "# " line)) + (("^\\[(target\\.\"cfg\\(windows\\))" line name) + (string-append "[off." name))))))) + (build-system cargo-build-system) + (native-inputs + (list clang pkg-config)) + (inputs + (list gmp nettle)) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-anyhow" ,rust-anyhow-1) + ("rust-backtrace" ,rust-backtrace-0.3) + ("rust-base64" ,rust-base64-0.13) + ("rust-buffered-reader" ,rust-buffered-reader-1) + ("rust-bzip2" ,rust-bzip2-0.4) + ("rust-chrono" ,rust-chrono-0.4) + ("rust-dyn-clone" ,rust-dyn-clone-1) + ("rust-flate2" ,rust-flate2-1) + ("rust-idna" ,rust-idna-0.2) + ("rust-itertools" ,rust-itertools-0.10) + ("rust-lalrpop" ,rust-lalrpop-0.19) + ("rust-lalrpop-util" ,rust-lalrpop-util-0.19) + ("rust-lazy-static" ,rust-lazy-static-1) ;; 1.4.0 + ("rust-libc" ,rust-libc-0.2) ;; 0.2.66 + ("rust-memsec" ,rust-memsec-0.6) + ("rust-nettle" ,rust-nettle-7) + ("rust-plotters" ,rust-plotters-0.3) + ("rust-regex" ,rust-regex-1) + ("rust-regex-syntax" ,rust-regex-syntax-0.6) + ("rust-sha1collisiondetection" ,rust-sha1collisiondetection-0.2) + ("rust-thiserror" ,rust-thiserror-1) + ("rust-unicode-normalization" ,rust-unicode-normalization-0.1) + ("rust-xxhash-rust" ,rust-xxhash-rust-0.8)) + #:cargo-development-inputs + ;; keep the development-inputs to allow running tests easily + (("rust-criterion" ,rust-criterion-0.3) + ("rust-quickcheck" ,rust-quickcheck-0.9) + ("rust-rand" ,rust-rand-0.7) + ("rust-rpassword" ,rust-rpassword-5)))) + (home-page "https://sequoia-pgp.org/") + (synopsis "OpenPGP data types and associated machinery") + (description "This crate aims to provide a complete implementation of +OpenPGP as defined by RFC 4880 as well as some extensions (e.g., RFC 6637, +which describes ECC cryptography) for OpenPGP. This includes support for +unbuffered message processing. + +A few features that the OpenPGP community considers to be deprecated (e.g., +version 3 compatibility) have been left out. The developers have also updated +some OpenPGP defaults to avoid foot guns (e.g., they selected modern algorithm +defaults). + +This Guix package is built to use the nettle cryptographic library.") + (license license:lgpl2.0+))) + (define-public sequoia (package (name "sequoia")