diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2026-02-24 19:31:44 +0100 |
|---|---|---|
| committer | Andreas Enge <andreas@enge.fr> | 2026-06-13 08:51:33 +0200 |
| commit | a8ee7bfbb9dcaa16e82d622f716b0cda4496331a (patch) | |
| tree | 612654892366893955d600f272510382f9b963bb /gnu | |
| parent | f278d6bc7eb2d7edd5b6c03e1114116aaa2c4cdd (diff) | |
gnu: ghc-8.4: Drop input labels.
* gnu/packages/haskell.scm (ghc-8.4)
[native-inputs]: Drop input labels.
[arguments]<#:phases>: Use search-input-file in phase
'set-target-programs.
Change-Id: I05da8d32a4a709c3fee97efa84b0f813e51a2af0
Signed-off-by: Andreas Enge <andreas@enge.fr>
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/haskell.scm | 65 |
1 files changed, 31 insertions, 34 deletions
diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm index 8525cff7df2..5b68896710e 100644 --- a/gnu/packages/haskell.scm +++ b/gnu/packages/haskell.scm | |||
| @@ -1203,29 +1203,29 @@ interactive environment for the functional language Haskell.") | |||
| 1203 | (sha256 | 1203 | (sha256 |
| 1204 | (base32 "1ch4j2asg7pr52ai1hwzykxyj553wndg7wq93i47ql4fllspf48i")))) | 1204 | (base32 "1ch4j2asg7pr52ai1hwzykxyj553wndg7wq93i47ql4fllspf48i")))) |
| 1205 | (native-inputs | 1205 | (native-inputs |
| 1206 | `(("gcc" ,gcc-13) ; does not compile with gcc-14 and adding | 1206 | (list |
| 1207 | ; -Wno-error=incompatible-pointer-types | 1207 | ;; XXX: does not compile with gcc-14 and adding |
| 1208 | ; at the appropriate stages is difficult | 1208 | ;; -Wno-error=incompatible-pointer-types at the appropriate stages |
| 1209 | ("perl" ,perl) | 1209 | ;; is difficult |
| 1210 | ("python" ,python) ; for tests | 1210 | gcc-13 |
| 1211 | ("ghostscript" ,ghostscript) ; for tests | 1211 | perl |
| 1212 | ;; GHC 8.4.4 is built with GHC >= 8.0. | 1212 | python ; for tests |
| 1213 | ("ghc-bootstrap" ,ghc-8.0) | 1213 | ghostscript ; for tests |
| 1214 | ("ghc-testsuite" | 1214 | ;; GHC 8.4.4 is built with GHC >= 8.0. |
| 1215 | ,(origin | 1215 | ghc-8.0 |
| 1216 | (method url-fetch) | 1216 | (origin |
| 1217 | (uri (string-append | 1217 | (method url-fetch) |
| 1218 | "https://www.haskell.org/ghc/dist/" | 1218 | (uri (string-append |
| 1219 | version "/" name "-" version "-testsuite.tar.xz")) | 1219 | "https://www.haskell.org/ghc/dist/" |
| 1220 | (sha256 | 1220 | version "/" name "-" version "-testsuite.tar.xz")) |
| 1221 | (base32 | 1221 | (sha256 |
| 1222 | "0s8lf9sxj7n89pjagi58b3fahnp34qvmwhnn0j1fbg6955vbrfj6")) | 1222 | (base32 "0s8lf9sxj7n89pjagi58b3fahnp34qvmwhnn0j1fbg6955vbrfj6")) |
| 1223 | (modules '((guix build utils))) | 1223 | (modules '((guix build utils))) |
| 1224 | (snippet | 1224 | (snippet |
| 1225 | ;; collections.Iterable was moved to collections.abc in Python 3.10. | 1225 | ;; collections.Iterable was moved to collections.abc in Python 3.10. |
| 1226 | '(substitute* "testsuite/driver/testlib.py" | 1226 | '(substitute* "testsuite/driver/testlib.py" |
| 1227 | (("collections\\.Iterable") | 1227 | (("collections\\.Iterable") |
| 1228 | "collections.abc.Iterable"))))))) | 1228 | "collections.abc.Iterable")))))) |
| 1229 | (arguments | 1229 | (arguments |
| 1230 | (substitute-keyword-arguments (package-arguments ghc-8.0) | 1230 | (substitute-keyword-arguments (package-arguments ghc-8.0) |
| 1231 | ((#:phases phases) | 1231 | ((#:phases phases) |
| @@ -1249,17 +1249,14 @@ interactive environment for the functional language Haskell.") | |||
| 1249 | ;; plain command names. | 1249 | ;; plain command names. |
| 1250 | (add-before 'configure 'set-target-programs | 1250 | (add-before 'configure 'set-target-programs |
| 1251 | (lambda* (#:key inputs #:allow-other-keys) | 1251 | (lambda* (#:key inputs #:allow-other-keys) |
| 1252 | (let ((binutils (assoc-ref inputs "binutils")) | 1252 | (setenv "CC" (search-input-file inputs "bin/gcc")) |
| 1253 | (gcc (assoc-ref inputs "gcc")) | 1253 | (setenv "CXX" (search-input-file inputs "/bin/g++")) |
| 1254 | (ld-wrapper (assoc-ref inputs "ld-wrapper"))) | 1254 | (setenv "LD" (search-input-file inputs "/bin/ld")) |
| 1255 | (setenv "CC" (string-append gcc "/bin/gcc")) | 1255 | (setenv "NM" (search-input-file inputs "/bin/nm")) |
| 1256 | (setenv "CXX" (string-append gcc "/bin/g++")) | 1256 | (setenv "RANLIB" (search-input-file inputs "/bin/ranlib")) |
| 1257 | (setenv "LD" (string-append ld-wrapper "/bin/ld")) | 1257 | (setenv "STRIP" (search-input-file inputs "/bin/strip")) |
| 1258 | (setenv "NM" (string-append binutils "/bin/nm")) | 1258 | ;; The 'ar' command does not follow the same pattern. |
| 1259 | (setenv "RANLIB" (string-append binutils "/bin/ranlib")) | 1259 | (setenv "fp_prog_ar" (search-input-file inputs "/bin/ar")))))))) |
| 1260 | (setenv "STRIP" (string-append binutils "/bin/strip")) | ||
| 1261 | ;; The 'ar' command does not follow the same pattern. | ||
| 1262 | (setenv "fp_prog_ar" (string-append binutils "/bin/ar"))))))))) | ||
| 1263 | (native-search-paths (list (search-path-specification | 1260 | (native-search-paths (list (search-path-specification |
| 1264 | (variable "GHC_PACKAGE_PATH") | 1261 | (variable "GHC_PACKAGE_PATH") |
| 1265 | (files (list | 1262 | (files (list |
