From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id OI5dOyT3bmGhbQAAgWs5BA (envelope-from ) for ; Tue, 19 Oct 2021 18:49:40 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id QEX9NiT3bmH6EwAAB5/wlQ (envelope-from ) for ; Tue, 19 Oct 2021 16:49:40 +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 7709B2B3FD for ; Tue, 19 Oct 2021 18:49:40 +0200 (CEST) Received: from localhost ([::1]:38262 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mcsJ1-0006er-I2 for larch@yhetil.org; Tue, 19 Oct 2021 12:49:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37584) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mcrmW-0007ir-Kz for guix-patches@gnu.org; Tue, 19 Oct 2021 12:16:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:40244) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mcrmV-0006ac-Og for guix-patches@gnu.org; Tue, 19 Oct 2021 12:16:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mcrmV-0005Ld-K3 for guix-patches@gnu.org; Tue, 19 Oct 2021 12:16:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#51289] [PATCH 4/4] gnu: Add BLAKE3 command line tool. Resent-From: Leo Famulari Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 19 Oct 2021 16:16:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51289 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 51289@debbugs.gnu.org Received: via spool by 51289-submit@debbugs.gnu.org id=B51289.163466015720510 (code B ref 51289); Tue, 19 Oct 2021 16:16:03 +0000 Received: (at 51289) by debbugs.gnu.org; 19 Oct 2021 16:15:57 +0000 Received: from localhost ([127.0.0.1]:51785 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mcrmO-0005Kd-VT for submit@debbugs.gnu.org; Tue, 19 Oct 2021 12:15:57 -0400 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:42715) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mcrmE-0005Je-55 for 51289@debbugs.gnu.org; Tue, 19 Oct 2021 12:15:46 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 241695C020B; Tue, 19 Oct 2021 12:15:41 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Tue, 19 Oct 2021 12:15:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=famulari.name; h=from:to:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=mesmtp; bh=QqRHU2MFdk RoiKCR91XBKk3AU42XJ1heaso2HxSHMXU=; b=aZPEbg4cKblSQiMVwtUSNow7NN uxMusvjgI/UDAK5LqM2rKnZLcoi31w6b56fahYFxw+I7EIgcYB0fuegX+Lx/OyGH L7afKgA3Z8/AKQvshY2r/YODsQMsxgNxbCkAI5Ui55Hu2LJ88LbZMOJEdmk0REah CkQCg4X3ltlrQM2CE= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=QqRHU2MFdkRoiKCR91XBKk3AU42XJ1heaso2HxSHMXU=; b=Wa5btA3v zRIyc6toS0SmW3mBP/9pWjFR8MNdwTU9M4BnAImZ24BaXV5yfGA3EufsFYRGz7ro GMTiaLBZL8Mb4mSmIunWXBaEgjGdKr3wJo7SAkqkrp/2yKHZH15FSDUGgTfpWBIT N1H6pP49ysctAKIp1gNchMvhX6ymCcd08nCgMRFrwp9jWYv5tKBFqFsuWoStNVxq iIewtv08ONG+swKOgDeJ84QPKJnYavdk9/4yRzjp72tBG8cGeawYap7/KB3DavPZ fIdbLFp36q5GCP7LBbsOPW9mTGU6vLMBwUTVe9hjb1dB5nsDmY5Pjzc1exSPuh7z UuFmy87X9XWYwA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrvddvvddgleefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgjfhgggfestdekre dtredttdenucfhrhhomhepnfgvohcuhfgrmhhulhgrrhhiuceolhgvohesfhgrmhhulhgr rhhirdhnrghmvgeqnecuggftrfgrthhtvghrnhepvefhtefgtdefkeeiteeltedvgeekhf ffkefhhffftdehudevvddthfffvddvleegnecuffhomhgrihhnpehgihhthhhusgdrtgho mhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehlvg hosehfrghmuhhlrghrihdrnhgrmhgv X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA for <51289@debbugs.gnu.org>; Tue, 19 Oct 2021 12:15:40 -0400 (EDT) From: Leo Famulari Date: Tue, 19 Oct 2021 12:15:35 -0400 Message-Id: <3449bed51c76535445511b8dc554b640527f0564.1634660132.git.leo@famulari.name> X-Mailer: git-send-email 2.33.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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=1634662180; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=QqRHU2MFdkRoiKCR91XBKk3AU42XJ1heaso2HxSHMXU=; b=ar9iqSF65A4rI9GR/QWylZCYcYDa2NtDhWBP+arN2UyO0GCGPWRXZrxFJcjmBQQYWzsR8K 0KmZBnCLGjCryJHRneAttQlUJU4jGvlPeKNNLnDgglcDiXkTZhwkXth0pbFEjnn3NXVz1X x/etlS+wU7k9AL8Jz85tGf8nwshEMU0ZsXcfN7J0VFiWVCoxJ8vANK4G85PhV3isWclpug Kr2wKmPmMRhoDBhVMewrD1c24tD1L5kUYu5G2r1Ikb/t6OXI0vJU1MX2XN55xykJ5bBNX+ k2HOBR7U8Mw6N5MM8Z40Bb5NbhVnFlTsWs8C5jS+T0NGTVLj0T/OGU8PbhqHEA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1634662180; a=rsa-sha256; cv=none; b=Wrgg4oFPIVAJo0w0ooQ1p3cuS+Aq8Dg3zAn3RbV//WCAf4rH3NfllRyCNZK3DrOOcvPqd9 oadMnkT8yhX9g0LSZJulM6Q61xN6pmuNqcfn77g0UyN2QJONjC818m1kQTXY3hCwcBKZot ZuMpPWWTVEWxY66eWbzOvknQirtPmUyLzW8kFqJC7VQnQTrZ4qLVBGbln8DdlumDYKMkgc smPAEqnjdQVdUShQvVmF+A6sq0lysRqftJLuM5cQ51gBLUmi8i82vdQiTBvsqjv4c541Q/ vDrQBRVhpnaN0tHj5YMDkHC6nSbNL+KPADyZm84r/Ut64qEND3ZHcPLwYq0c6A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=famulari.name header.s=mesmtp header.b=aZPEbg4c; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm1 header.b=Wa5btA3v; dmarc=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.07 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=famulari.name header.s=mesmtp header.b=aZPEbg4c; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm1 header.b=Wa5btA3v; dmarc=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: 7709B2B3FD X-Spam-Score: 3.07 X-Migadu-Scanner: scn1.migadu.com X-TUID: 6Tg1lawWWiPD * gnu/packages/crypto.scm (b3sum): New variable. --- gnu/packages/crypto.scm | 49 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/gnu/packages/crypto.scm b/gnu/packages/crypto.scm index 3b5957ef23..1b4906dc31 100644 --- a/gnu/packages/crypto.scm +++ b/gnu/packages/crypto.scm @@ -1534,3 +1534,52 @@ (define-public rust-blake3-0.3 ;; Users may choose between these two licenses when redistributing the ;; program provided by this package. (license (list license:cc0 license:asl2.0)))) + +(define-public b3sum + (package + (name "b3sum") + ;; Version 1 requires Rust >= 1.51. + ;; + (version "0.3.8") + (source + (origin + (method url-fetch) + (uri (crate-uri "b3sum" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0h3fz16q5lk6mg7r8kjkjrq5hd4injngn5m7pswjbf2pyzjmg4b4")))) + (build-system cargo-build-system) + (arguments + `(;; Install the source so that Cargo.toml is installed, because that is + ;; the only reference to the license information. + #:install-source? #t + #:phases + (modify-phases %standard-phases + (add-before 'check 'patch-tests + (lambda _ + (substitute* "tests/cli_tests.rs" + (("/bin/sh") (which "sh"))))) + (add-after 'install 'install-doc + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (doc (string-append out "/share/doc/" ,name "-" + ,(package-version this-package)))) + (install-file "README.md" doc))))) + #:cargo-inputs + (("rust-anyhow" ,rust-anyhow-1) + ("rust-blake3" ,rust-blake3-0.3) + ("rust-clap" ,rust-clap-2) + ("rust-hex" ,rust-hex-0.4) + ("rust-memmap" ,rust-memmap-0.7) + ("rust-rayon" ,rust-rayon-1) + ("rust-wild" ,rust-wild-2)) + #:cargo-development-inputs + (("rust-duct" ,rust-duct-0.13) + ("rust-tempfile" ,rust-tempfile-3)))) + (home-page "https://github.com/BLAKE3-team/BLAKE3") + (synopsis "Command line BLAKE3 checksum tool") + (description "This package provides @code{b3sum}, a command line +checksum tool based on the BLAKE3 cryptographic hash function.") + ;; Users may choose between these two licenses when redistributing the + ;; program provided by this package. + (license (list license:cc0 license:asl2.0)))) -- 2.33.1