all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: itd <itd@net.in.tum.de>
To: 58000@debbugs.gnu.org
Subject: [bug#58000] [PATCH] gnu: Add ghc-9.0.
Date: Thu, 22 Sep 2022 08:21:58 +0200	[thread overview]
Message-ID: <87mtasornd.fsf@localhost> (raw)

* gnu/packages/haskell.scm (ghc-9.0): New variable.
---
Hi,

this patch introduces GHC 9.0.2.  (More recent than the latest GHC in Guix and
prerequisite to build newer GHC releases, to my understanding.)
Please consider applying it.  Thanks!

Regards
itd

 gnu/packages/haskell.scm | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm
index effc6eeb1b..0afa4d1ce9 100644
--- a/gnu/packages/haskell.scm
+++ b/gnu/packages/haskell.scm
@@ -1011,6 +1011,41 @@ (define-public ghc-8.10
 
 (define-public ghc-8 ghc-8.10)
 
+(define-public ghc-9.0
+  (package
+    (inherit ghc-8.10)
+    (name "ghc-next")
+    (version "9.0.2")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "https://www.haskell.org/ghc/dist/" version
+                                  "/ghc-" version "-src.tar.xz"))
+              (sha256
+               (base32
+                "15wii8can2r3dcl6jjmd50h2jvn7rlmn05zb74d2scj6cfwl43hl"))))
+    (native-inputs `(("ghc-bootstrap" ,ghc-8.10)
+                     ("ghc-testsuite"
+                      ,(origin
+                         (method url-fetch)
+                         (uri (string-append
+                               "https://www.haskell.org/ghc/dist/"
+                               version "/ghc-" version "-testsuite.tar.xz"))
+                         (sha256
+                          (base32
+                           "1m5fzhr4gjn9ni8gxx7ag3fkbw1rspjzgv39mnfb0nkm5mw70v3s"))))
+                     ("git" ,git-minimal/fixed) ;invoked during tests
+                     ,@(filter (match-lambda
+                                 (("ghc-bootstrap" . _) #f)
+                                 (("ghc-testsuite" . _) #f)
+                                 (_ #t))
+                               (package-native-inputs ghc-8.10))))
+    (native-search-paths
+     (list (search-path-specification
+            (variable "GHC_PACKAGE_PATH")
+            (files (list (string-append "lib/ghc-" version)))
+            (file-pattern ".*\\.conf\\.d$")
+            (file-type 'directory))))))
+
 (define-public ghc ghc-8)
 
 ;;; haskell.scm ends here

base-commit: 04cad8e29ed85be838921c7fa05f7c5bce94b6d1
-- 
2.37.3





             reply	other threads:[~2022-09-22  6:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-22  6:21 itd [this message]
2022-10-02 18:13 ` bug#58000: [PATCH] gnu: Add ghc-9.0 Efraim Flashner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87mtasornd.fsf@localhost \
    --to=itd@net.in.tum.de \
    --cc=58000@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.