From patchwork Sun Aug 21 23:43:21 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Cairn X-Patchwork-Id: 41803 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 B241627BBEA; Mon, 22 Aug 2022 00:49:47 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,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 73CEA27BBE9 for ; Mon, 22 Aug 2022 00:49:47 +0100 (BST) Received: from localhost ([::1]:36590 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oPuhO-0000xs-JU for patchwork@mira.cbaines.net; Sun, 21 Aug 2022 19:49:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58710) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oPubr-0002lU-Qs for guix-patches@gnu.org; Sun, 21 Aug 2022 19:44:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:47350) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oPubr-0003Fo-9N for guix-patches@gnu.org; Sun, 21 Aug 2022 19:44:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oPubq-0002az-Tc for guix-patches@gnu.org; Sun, 21 Aug 2022 19:44:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57326] [PATCH 3/7] gnu: Add go-github-com-emersion-go-bcrypt. References: <20220821193242.7062-1-cairn@pm.me> In-Reply-To: <20220821193242.7062-1-cairn@pm.me> Resent-From: Cairn Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 21 Aug 2022 23:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57326 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 57326@debbugs.gnu.org Cc: Cairn Received: via spool by 57326-submit@debbugs.gnu.org id=B57326.16611254189918 (code B ref 57326); Sun, 21 Aug 2022 23:44:02 +0000 Received: (at 57326) by debbugs.gnu.org; 21 Aug 2022 23:43:38 +0000 Received: from localhost ([127.0.0.1]:37094 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oPubR-0002Zu-VP for submit@debbugs.gnu.org; Sun, 21 Aug 2022 19:43:38 -0400 Received: from mail-4316.protonmail.ch ([185.70.43.16]:53791) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oPubQ-0002Zg-5P for 57326@debbugs.gnu.org; Sun, 21 Aug 2022 19:43:36 -0400 Date: Sun, 21 Aug 2022 23:43:21 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pm.me; s=protonmail3; t=1661125410; x=1661384610; bh=cIzGn/Uo3YUSZJ8kX6lmI2Vy35sLm2Qjl3VJjLiaVbg=; h=Date:To:From:Cc:Reply-To:Subject:Message-ID:Feedback-ID:From:To: Cc:Date:Subject:Reply-To:Feedback-ID:Message-ID; b=V3pcBpUo6lB3g6FJeUFyZt1b6RKSNSAMEIodOVL7WLxZZ/10LgJDUgL3UqDNmDN2F cot37imvG6zSHedl4xsQPzVWy3oYmCCs8u9mCgYVEqzYpOFUF8BaaVqxRoL392kINp LJU37E5QkbRa8RigUKQQvt3ewsHyvj1mulBW0vfeX9A307M9Da3c8rTMMWAPxpi+tb JzzJu7CyWIQLWsWHpM0jdruPd09Iq1kxAklOZLKmFJUWhCRfxHLy7vwXCVy9KrioIl WBkMWfK+1lHRabghNKALGJa9EgkVf5eMCmo7LY2gCkBegX4TA4mA0XkGN35WU+zSLs Ea6cwSVNg1nzg== Message-ID: <20220821234313.16191-1-cairn@pm.me> Feedback-ID: 6989168:user:proton MIME-Version: 1.0 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" Reply-to: Cairn X-ACL-Warn: , Cairn via Guix-patches X-Patchwork-Original-From: Cairn via Guix-patches via From: Cairn X-getmail-retrieved-from-mailbox: Patches * gnu/packages/golang.scm (go-github-com-emersion-go-bcrypt): New variable. --- gnu/packages/golang.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 0f52edbf52..60c014a3c1 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -9939,3 +9939,29 @@ (define-public go-github-com-sourcegraph-jsonrpc2 (description "Package jsonrpc2 provides a Go implementation of JSON-RPC 2.0.") (license license:expat))) + +(define-public go-github-com-emersion-go-bcrypt + (let ((commit "6e724a1baa633595ee7629cc82f284f8a5fcb10a") + (revision "0")) + (package + (name "go-github-com-emersion-go-bcrypt") + (version (git-version "0.0.0" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/emersion/go-bcrypt") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1pchrgs05w30iqbh4d6iys4wvlyajsdwchp5mkf59amgsbyjaqgm")))) + (build-system go-build-system) + (arguments + `(#:import-path "github.com/emersion/go-bcrypt")) + (inputs (list go-golang-org-x-crypto)) + (home-page "https://github.com/emersion/go-bcrypt") + (synopsis "Go implementation of bcrypt adaptive hashing algorithm") + (description "Provos and Mazières's bcrypt algorithm for password +hashing implemented in Go. This modification adds the +GenerateFromPasswordAndSalt function.") + (license license:bsd-3))))