guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

02/02: gnu: Add GHC 9.0.2.


From: guix-commits
Subject: 02/02: gnu: Add GHC 9.0.2.
Date: Sun, 8 May 2022 07:49:33 -0400 (EDT)

lbraun pushed a commit to branch wip-haskell
in repository guix.

commit c091ccc311c1fd6e2e0e0504b1bf3367c72146bf
Author: Lars-Dominik Braun <lars@6xq.net>
AuthorDate: Sun May 8 13:47:16 2022 +0200

    gnu: Add GHC 9.0.2.
    
    * gnu/packages/haskell.scm (ghc-9.0): New variable.
    (ghc-9): New variable.
    (ghc): Point at ghc-9 instead of ghc-8.
---
 gnu/packages/haskell.scm | 40 +++++++++++++++++++++++++++++++++++++++-
 1 file changed, 39 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm
index 3fef20d933..5b0b33dc81 100644
--- a/gnu/packages/haskell.scm
+++ b/gnu/packages/haskell.scm
@@ -1000,6 +1000,42 @@ interactive environment for the functional language 
Haskell.")
                                 (file-pattern ".*\\.conf\\.d$")
                                 (file-type 'directory))))))
 
+(define-public ghc-9.0
+  (package
+    (inherit ghc-8.10)
+    (name "ghc")
+    (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))))))
+
 ;; Versions newer than ghc defined below (i.e. the compiler
 ;; haskell-build-system uses) should use ghc-next as their name to
 ;; ensure ghc (without version specification) and ghc-* packages are
@@ -1007,6 +1043,8 @@ interactive environment for the functional language 
Haskell.")
 
 (define-public ghc-8 ghc-8.10)
 
-(define-public ghc ghc-8)
+(define-public ghc-9 ghc-9.0)
+
+(define-public ghc ghc-9)
 
 ;;; haskell.scm ends here



reply via email to

[Prev in Thread] Current Thread [Next in Thread]