diff options
| author | Saku Laesvuori <saku@laesvuori.fi> | 2025-08-28 20:10:53 +0300 |
|---|---|---|
| committer | Andreas Enge <andreas@enge.fr> | 2026-06-13 08:51:26 +0200 |
| commit | cf6a20878594222a71f9d72331e359306f277937 (patch) | |
| tree | 5afd9b329a824c2ec128d2a5fd4c94ef8b59e3f9 /gnu/packages/haskell.scm | |
| parent | 947288fbb2d797a18297ae22678fb9adb383f123 (diff) | |
gnu: Add ghc-9.10
* gnu/packages/haskell.scm (ghc-9.10): New variable.
Change-Id: I4e4c9c4b8f135936a52ff8df16924f50de4ce726
Signed-off-by: Lars-Dominik Braun <lars@6xq.net>
Diffstat (limited to 'gnu/packages/haskell.scm')
| -rw-r--r-- | gnu/packages/haskell.scm | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm index 871036c85ef..889cb3a54c3 100644 --- a/gnu/packages/haskell.scm +++ b/gnu/packages/haskell.scm | |||
| @@ -2060,4 +2060,82 @@ SRC_HC_OPTS += -optc-mno-outline-atomics | |||
| 2060 | interactive environment for the functional language Haskell.") | 2060 | interactive environment for the functional language Haskell.") |
| 2061 | (license license:bsd-3)))) | 2061 | (license license:bsd-3)))) |
| 2062 | 2062 | ||
| 2063 | (define-public ghc-9.10 | ||
| 2064 | (let ((base ghc-9.8)) | ||
| 2065 | (package | ||
| 2066 | (inherit base) | ||
| 2067 | (name "ghc-next") | ||
| 2068 | (version "9.10.2") | ||
| 2069 | (source | ||
| 2070 | (origin | ||
| 2071 | (method url-fetch) | ||
| 2072 | (uri (string-append "https://downloads.haskell.org/~ghc/" version | ||
| 2073 | "/ghc-" version "-src.tar.xz")) | ||
| 2074 | (sha256 | ||
| 2075 | (base32 | ||
| 2076 | "1pm84cgr3yg99r3srdjllgz6zig8h7dbwa597srwcnjp0nh41zam")))) | ||
| 2077 | (arguments | ||
| 2078 | (substitute-keyword-arguments (package-arguments base) | ||
| 2079 | ((#:phases phases #~%standard-phases) | ||
| 2080 | #~(modify-phases #$phases | ||
| 2081 | (replace 'check | ||
| 2082 | (lambda* (#:key (tests? #t) (parallel-tests? #f) (make-flags '()) | ||
| 2083 | #:allow-other-keys) | ||
| 2084 | (if tests? | ||
| 2085 | (apply invoke "_build/bin/hadrian" | ||
| 2086 | `(,@(if parallel-tests? | ||
| 2087 | (list (string-append | ||
| 2088 | "-j" | ||
| 2089 | (number->string (parallel-job-count)))) | ||
| 2090 | '()) | ||
| 2091 | ,@make-flags | ||
| 2092 | "test" | ||
| 2093 | ,(string-append | ||
| 2094 | "--broken-test=" | ||
| 2095 | (string-join | ||
| 2096 | (list "T15904" ; ld-wrapper, apparently | ||
| 2097 | "T16521" ; no idea | ||
| 2098 | ;; These fail due to gcc | ||
| 2099 | ;; -Wincompatible-pointer-types, which | ||
| 2100 | ;; apparently is not used in GHC's CI | ||
| 2101 | ;; https://gitlab.haskell.org/ghc/ghc/-/issues/22263 | ||
| 2102 | "list_threads_and_misc_roots" | ||
| 2103 | "stack_misc_closures"))) | ||
| 2104 | "--skip-perf")) | ||
| 2105 | (format #t "test suite not run~%")))))))) | ||
| 2106 | (native-inputs | ||
| 2107 | `(("ghc-bootstrap" ,base) | ||
| 2108 | ("ghc-testsuite" | ||
| 2109 | ,(origin | ||
| 2110 | (method url-fetch) | ||
| 2111 | (uri (string-append | ||
| 2112 | "https://downloads.haskell.org/~ghc/" | ||
| 2113 | version "/ghc-" version "-testsuite.tar.xz")) | ||
| 2114 | (sha256 | ||
| 2115 | (base32 | ||
| 2116 | "143ifc4g3jc6s9hcry5qha913rzwg4hpsvk6pqvxk5r0qigfxjwx")) | ||
| 2117 | (patches (search-patches "ghc-testsuite-recomp015-execstack.patch")))) | ||
| 2118 | ("hadrian-bootstrap" | ||
| 2119 | ,(origin | ||
| 2120 | (method url-fetch) | ||
| 2121 | (uri (string-append "https://downloads.haskell.org/~ghc/" version | ||
| 2122 | "/hadrian-bootstrap-sources/" | ||
| 2123 | "hadrian-bootstrap-sources-" | ||
| 2124 | (package-version base) ".tar.gz")) | ||
| 2125 | (sha256 | ||
| 2126 | (base32 | ||
| 2127 | "162lbafvdamfhx1jldax3shgk8jbbqn4an97ny363lxbdjgdn708")))) | ||
| 2128 | ,@(filter (match-lambda | ||
| 2129 | (("ghc-bootstrap" . _) #f) | ||
| 2130 | (("ghc-testsuite" . _) #f) | ||
| 2131 | (("hadrian-bootstrap" . _) #f) | ||
| 2132 | (_ #t)) | ||
| 2133 | (package-native-inputs base)))) | ||
| 2134 | (native-search-paths | ||
| 2135 | (list (search-path-specification | ||
| 2136 | (variable "GHC_PACKAGE_PATH") | ||
| 2137 | (files (list (string-append "lib/ghc-" version))) | ||
| 2138 | (file-pattern ".*\\.conf\\.d$") | ||
| 2139 | (file-type 'directory))))))) | ||
| 2140 | |||
| 2063 | ;;; haskell.scm ends here | 2141 | ;;; haskell.scm ends here |
