From patchwork Thu Feb 15 08:49:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Saku Laesvuori X-Patchwork-Id: 60347 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 4462B27BBEC; Thu, 15 Feb 2024 08:53:14 +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 B4DBA27BBEA for ; Thu, 15 Feb 2024 08:53:13 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1raXT8-0000NZ-Hh; Thu, 15 Feb 2024 03:51:46 -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 1raXT7-0000N8-V4 for guix-patches@gnu.org; Thu, 15 Feb 2024 03:51:46 -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 1raXT7-00043B-N4 for guix-patches@gnu.org; Thu, 15 Feb 2024 03:51:45 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1raXTQ-00018S-75; Thu, 15 Feb 2024 03:52:04 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#67921] [PATCH v2 06/23] gnu: Add ghc-splitmix-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:04 +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.17079870784148 (code B ref 67921); Thu, 15 Feb 2024 08:52:04 +0000 Received: (at 67921) by debbugs.gnu.org; 15 Feb 2024 08:51:18 +0000 Received: from localhost ([127.0.0.1]:54014 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1raXSf-00014k-D7 for submit@debbugs.gnu.org; Thu, 15 Feb 2024 03:51:17 -0500 Received: from vmi571514.contaboserver.net ([75.119.130.101]:55062 helo=mail.laesvuori.fi) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1raXSS-000129-2d for 67921@debbugs.gnu.org; Thu, 15 Feb 2024 03:51:05 -0500 Received: from X-kone.org.aalto.fi (unknown [130.233.144.187]) by mail.laesvuori.fi (Postfix) with ESMTPSA id DE39134367A; Thu, 15 Feb 2024 09:51:22 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=laesvuori.fi; s=mail; t=1707987083; bh=azhQmk2dAYy5HdQrNemhnNNvIoyC1t8JKKo9YLfLgKo=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=IbvX7RnAEUINiUXDFJXMp8gEwAz2rKUkPUSLuuWg/omKynEdNqrDe2Lpyxg5FcFiW 45Cqrk7saaffhqG3pxiEKa5y0gZPk0uN2bszDOFcCmoakOAfA7XXSipUXhzAG44+83 YH8kReTNDA6FZOlIMOFA4A2wC1cWSa597tnGPFQw= Date: Thu, 15 Feb 2024 10:49:47 +0200 Message-ID: <0b77306b9641fc095a6d8ce755b160afaeda9bff.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-splitmix-bootstrap-for-9.6): New variable. Change-Id: I65584aa893975015dc44491b120636844af801de --- gnu/packages/haskell.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm index 307231e8f3..ce3ca5083d 100644 --- a/gnu/packages/haskell.scm +++ b/gnu/packages/haskell.scm @@ -1601,4 +1601,36 @@ (define ghc-hashable-bootstrap-for-9.6 combine hash values.") (license license:bsd-3))) +(define ghc-splitmix-bootstrap-for-9.6 + (package + (name "ghc-splitmix-bootstrap") + (version "0.1.0.5") + (source (origin + (method url-fetch) + (uri (hackage-uri "splitmix" version)) + (sha256 + (base32 + "00ihw7vji8ydik7f5lk9iwj21j829lpl22wa4nqz2igg26b7mw4x")))) + (build-system haskell-build-system) + (properties '((upstream-name . "splitmix"))) + (arguments + `(#:tests? #f + #:haskell ,ghc-bootstrap-for-9.6)) + (home-page "http://hackage.haskell.org/package/splitmix") + (synopsis "Fast and splittable pseudorandom number generator") + (description + "This package provides a Pure Haskell implementation of the +SplitMix pseudorandom number generator. SplitMix is a \"splittable\" +pseudorandom number generator that is quite fast: 9 64-bit +arithmetic/logical operations per 64 bits generated. SplitMix is tested +with two standard statistical test suites (DieHarder and TestU01, this +implementation only using the former) and it appears to be adequate for +\"everyday\" use, such as Monte Carlo algorithms and randomized data +structures where speed is important. In particular, it @strong{should not +be used for cryptographic or security applications}, because generated +sequences of pseudorandom values are too predictable (the mixing functions +are easily inverted, and two successive outputs suffice to reconstruct the +internal state).") + (license license:bsd-3))) + ;;; haskell.scm ends here