Subject: [bug#67921] [PATCH v3 09/24] gnu: Add ghc-primitive-bootstrap-for-9.6

From: Nicolas Graves <[email-masked]>
Date: Thu, 31 Oct 2024 13:46:48 +0100

From: Saku Laesvuori <[email-masked]>

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

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

diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm
index 2d50113d64..a241e9253f 100644
--- a/gnu/packages/haskell.scm
+++ b/gnu/packages/haskell.scm
@@ -1760,4 +1760,27 @@ (define ghc-random-bootstrap-for-9.6
 library, including the ability to split random number generators.")
     (license license:bsd-3)))
 
+(define ghc-primitive-bootstrap-for-9.6
+  (package
+    (name "ghc-primitive-bootstrap")
+    (version "0.8.0.0")
+    (source (origin
+              (method url-fetch)
+              (uri (hackage-uri "primitive" version))
+              (sha256
+               (base32
+                "0pwr5g3bra5m2zjm14pj98klqj2qrjcfasgd3rcrp7vq98dw4lsm"))))
+    (build-system haskell-build-system)
+    (properties '((upstream-name . "primitive")))
+    (arguments
+     `(#:tests? #f
+       #:haskell ,ghc-bootstrap-for-9.6
+       #:cabal-revision ("1"
+                         "0w1nf0rabgyk5q7ccw7va1mj6k50lswvikhi6vr2myb1dvx4bzyh")))
+    (home-page "https://github.com/haskell/primitive")
+    (synopsis "Primitive memory-related operations")
+    (description
+     "This package provides various primitive memory-related operations.")
+    (license license:bsd-3)))
+
 ;;; haskell.scm ends here
-- 
2.46.0