summaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorSaku Laesvuori <saku@laesvuori.fi>2026-06-05 10:06:39 +0300
committerAndreas Enge <andreas@enge.fr>2026-06-13 08:51:34 +0200
commit8c5af513a16c50abdd60a34822323f50cc047165 (patch)
tree47e922a1f8c557041310d5858574ea4443dcf01f /gnu/packages
parentea001eff38c64a56fe415118e70037f3278721e9 (diff)
gnu: ghc-9.4: Inherit from and bootstrap with the same GHC
This makes ghc-9.2 mostly redundant since packages are built with 9.10 and 9.2 is not used in bootstrapping. * gnu/packages/haskell.scm (ghc-9.4): Inherit from ghc-9.0 [arguments]: Copy a fix from ghc-9.2. Change-Id: I13dcf9a76af35b52a1bfd963736ad2aba83fe524 Signed-off-by: Andreas Enge <andreas@enge.fr>
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/haskell.scm12
1 files changed, 8 insertions, 4 deletions
diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm
index 4000d3ff799..338cace4c97 100644
--- a/gnu/packages/haskell.scm
+++ b/gnu/packages/haskell.scm
@@ -1826,8 +1826,7 @@ SRC_HC_OPTS += -optc-mno-outline-atomics
1826 (license license:bsd-3)))) 1826 (license license:bsd-3))))
1827 1827
1828(define-public ghc-9.4 1828(define-public ghc-9.4
1829 ;; Inherit from 9.2, which added a few fixes, but boot from 9.0 (see above). 1829 (let ((base ghc-bootstrap-for-9.4))
1830 (let ((base ghc-9.2))
1831 (package 1830 (package
1832 (inherit base) 1831 (inherit base)
1833 (name "ghc") 1832 (name "ghc")
@@ -1845,12 +1844,17 @@ SRC_HC_OPTS += -optc-mno-outline-atomics
1845 ((#:phases phases '%standard-phases) 1844 ((#:phases phases '%standard-phases)
1846 #~(modify-phases #$phases 1845 #~(modify-phases #$phases
1847 ;; Files don’t exist any more. 1846 ;; Files don’t exist any more.
1848 (delete 'skip-tests))) 1847 (delete 'skip-tests)
1848 ;; File Common.hs has been moved to src/ in the 9.2 release.
1849 (replace 'fix-cc-reference
1850 (lambda _
1851 (substitute* "utils/hsc2hs/src/Common.hs"
1852 (("\"cc\"") "\"gcc\""))))))
1849 ((#:tests? _ #f) 1853 ((#:tests? _ #f)
1850 #f))) 1854 #f)))
1851 (native-inputs 1855 (native-inputs
1852 `(;; GHC 9.4 must be built with GHC >= 9.0. 1856 `(;; GHC 9.4 must be built with GHC >= 9.0.
1853 ("ghc-bootstrap" ,ghc-bootstrap-for-9.4) 1857 ("ghc-bootstrap" ,base)
1854 ("ghc-testsuite" 1858 ("ghc-testsuite"
1855 ,(origin 1859 ,(origin
1856 (method url-fetch) 1860 (method url-fetch)