From patchwork Thu Feb 15 08:49:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Saku Laesvuori X-Patchwork-Id: 60344 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 1E01D27BBEA; Thu, 15 Feb 2024 08:53:04 +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.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham 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 90A8227BBE2 for ; Thu, 15 Feb 2024 08:53:03 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1raXTE-0000Tg-Fk; Thu, 15 Feb 2024 03:51:52 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1raXTC-0000SE-MA for guix-patches@gnu.org; Thu, 15 Feb 2024 03:51:50 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1raXTC-00045d-DS for guix-patches@gnu.org; Thu, 15 Feb 2024 03:51:50 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1raXTU-00019q-ST; Thu, 15 Feb 2024 03:52:08 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#67921] [PATCH v2 17/23] gnu: Add ghc-cryptohash-sha256-bootstrap-for-9.6 Resent-From: Saku Laesvuori Original-Sender: "Debbugs-submit" Resent-CC: lars@6xq.net, guix-patches@gnu.org Resent-Date: Thu, 15 Feb 2024 08:52:08 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67921 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 67921@debbugs.gnu.org Cc: Saku Laesvuori , Lars-Dominik Braun X-Debbugs-Original-To: guix-patches@gnu.org, 67921@debbugs.gnu.org X-Debbugs-Original-Xcc: Lars-Dominik Braun Received: via spool by 67921-submit@debbugs.gnu.org id=B67921.17079870824224 (code B ref 67921); Thu, 15 Feb 2024 08:52:08 +0000 Received: (at 67921) by debbugs.gnu.org; 15 Feb 2024 08:51:22 +0000 Received: from localhost ([127.0.0.1]:54034 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1raXSj-00015y-PO for submit@debbugs.gnu.org; Thu, 15 Feb 2024 03:51:22 -0500 Received: from vmi571514.contaboserver.net ([75.119.130.101]:55054 helo=mail.laesvuori.fi) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1raXSX-000121-Ia for 67921@debbugs.gnu.org; Thu, 15 Feb 2024 03:51:10 -0500 Received: from X-kone.org.aalto.fi (unknown [130.233.144.187]) by mail.laesvuori.fi (Postfix) with ESMTPSA id BFBCD34367C; Thu, 15 Feb 2024 09:51:28 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=laesvuori.fi; s=mail; t=1707987088; bh=Th/yrjWkXBU0OObv8igVYGgPiRpXu0IXr+ep8cmkXPc=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=v2oSrnY6zQ3Ji5KjJgugaCoCinNTTjEhOF/Pbmolv0mLq6AZgsUdgCIiYrXcE7mLM rYlPUbjdpQXN2NDsJS1VyWzjDngQYY4tmqhcGlMjOLuOV8sxGj+LfiXttByNkjeYGk 4zwEn/mh7Xap3iGdmMHf+lX2QXgZJyeBdcstVwE0= Date: Thu, 15 Feb 2024 10:49:58 +0200 Message-ID: <5024925e614ba9b15470aabd183169ce60c4e273.1707827100.git.saku@laesvuori.fi> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: 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: , Reply-to: Saku Laesvuori X-ACL-Warn: , Saku Laesvuori via Guix-patches X-Patchwork-Original-From: Saku Laesvuori via Guix-patches via From: Saku Laesvuori Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/haskell.scm (ghc-cryptohash-sha256-bootstrap-for-9.6): New variable. Change-Id: I80dd73de554160f4dc904c01ea292a886f51e970 --- gnu/packages/haskell.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm index 348a67f1c5..d163331b2b 100644 --- a/gnu/packages/haskell.scm +++ b/gnu/packages/haskell.scm @@ -1533,6 +1533,35 @@ (define ghc-js-flot-bootstrap-for-9.6 requirements of downstream users (e.g. Debian).") (license license:expat))) +(define ghc-cryptohash-sha256-bootstrap-for-9.6 + (package + (name "ghc-cryptohash-sha256-bootstrap") + (version "0.11.102.1") + (source + (origin + (method url-fetch) + (uri (hackage-uri "cryptohash-sha256" version)) + (sha256 + (base32 + "1xkb7iqplbw4fy1122p79xf1zcb7k44rl0wmfj1q06l7cdqxr9vk")))) + (build-system haskell-build-system) + (properties '((upstream-name . "cryptohash-sha256"))) + (arguments + `(#:cabal-revision + ("1" "1hyzqv30rpj920ddnr0zypyjjlh52vyp2d140pn2byayj820rkgs") + #:haskell ,ghc-bootstrap-for-9.6 + #:tests? #f)) + (home-page "https://github.com/hvr/cryptohash-sha1") + (synopsis "SHA-256 implementation for Haskell") + (description "This Haskell package provides an incremental and +one-pass, pure API to the @uref{https://en.wikipedia.org/wiki/SHA-2, +SHA-256 cryptographic hash algorithm}, with performance close to the +fastest implementations available in other languages. + +The implementation is made in C with a haskell FFI wrapper that hides +the C implementation.") + (license license:bsd-3))) + (define ghc-base16-bytestring-bootstrap-for-9.6 (package (name "ghc-base16-bytestring-bootstrap")