summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoritd <itd@net.in.tum.de>2022-09-22 08:21:58 +0200
committerGuix Patches Tester <>2022-09-22 07:32:12 +0100
commitd92d82e801c19a5ed2394b1c95868d610cb32744 (patch)
treed244806cb31d394c35755f3c5f6ccf39077be356
parent97e719593045f5541d062aece1a25379be56d24d (diff)
downloadguix-patches-d92d82e801c19a5ed2394b1c95868d610cb32744.tar
guix-patches-d92d82e801c19a5ed2394b1c95868d610cb32744.tar.gz
gnu: Add ghc-9.0.
* gnu/packages/haskell.scm (ghc-9.0): New variable.
-rw-r--r--gnu/packages/haskell.scm35
1 files changed, 35 insertions, 0 deletions
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 @@ interactive environment for the functional language Haskell.")
(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