Subject: [bug#67921] [PATCH v2 07/23] gnu: Add ghc-random-bootstrap-for-9.6

From: Saku Laesvuori <[email-masked]>
Date: Thu, 15 Feb 2024 10:49:48 +0200

* gnu/packages/haskell.scm (ghc-random-bootstrap-for-9.6): New variable.

Change-Id: If1a39b27687a63a63dab5aa4c1a366a8ba78196a
---
 gnu/packages/haskell.scm | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm
index ce3ca5083d..9487223636 100644
--- a/gnu/packages/haskell.scm
+++ b/gnu/packages/haskell.scm
@@ -1633,4 +1633,26 @@ (define ghc-splitmix-bootstrap-for-9.6
 internal state).")
     (license license:bsd-3)))
 
+(define ghc-random-bootstrap-for-9.6
+  (package
+    (name "ghc-random-bootstrap")
+    (version "1.2.1.1")
+    (source (origin
+              (method url-fetch)
+              (uri (hackage-uri "random" version))
+              (sha256
+               (base32
+                "0xlv1k4sj87akwvj54kq4nrfkzi6qcz1941bf78pnkbaxpvp44iy"))))
+    (build-system haskell-build-system)
+    (properties '((upstream-name . "random")))
+    (arguments (list #:tests? #f
+                     #:haskell ghc-bootstrap-for-9.6))
+    (inputs (list ghc-splitmix-bootstrap-for-9.6))
+    (home-page "http://hackage.haskell.org/package/random")
+    (synopsis "Random number library")
+    (description
+     "This package provides a basic random number generation
+library, including the ability to split random number generators.")
+    (license license:bsd-3)))
+
 ;;; haskell.scm ends here
-- 
2.41.0