aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/haskell.scm
Commit message (Collapse)AuthorAge
* gnu: ghc: Fix build with binutils ≥ 2.39.Josselin Poiret2024-08-31
| | | | | | | | | | | | | ld warns about exec stack now, making some tests fail. Fix them (and also remove an unwarranted exec stack from libHSrts along with it). * gnu/packages/patches/ghc-9-StgCRunAsm-only-when-needed.patch * gnu/packages/patches/ghc-testsuite-recomp015-execstack.patch: New patches. * gnu/local.mk (dist_patch_DATA): Register them. * gnu/packages/haskell.scm (ghc-8.6, ghc-8.8, ghc-8.10, ghc-9.0, ghc-9.2, ghc-9.4): Use them. Change-Id: I8e5fc71d7394527d44ff37b1f9bd59d4971ec010
* gnu: ghc-9.2: Remove unneeded glibc 2.33 patch.Josselin Poiret2024-08-31
| | | | | | | | * gnu/packages/patches/ghc-9.2-glibc-2.33-link-order.patch: Remove. * gnu/local.mk (dist_patch_DATA): Unregister. * gnu/packages/haskell.scm (ghc-9.2): Remove patch use. Change-Id: I7d305dadb627f6af55e4a5faabfc835e4a78a05b
* gnu: ghc-9.2: Update to 9.2.8.Lars-Dominik Braun2024-06-29
| | | | | | * gnu/packages/haskell.scm (ghc-9.2): Update to 9.2.8. Change-Id: I4cbb48ad166f893a5b7c707505a77effce208b86
* gnu: ghc-9.2: Make Cabal respect GHC_PACKAGE_PATHSören Tempel2024-06-29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | **tl;dr** Applying this patch makes Cabal work in Guix environments and ensures that Cabal picks up Haskell packages installed via Guix. Guix makes heavy use of GHC_PACKAGE_PATH to make GHC pickup Haskell packages installed via the Guix package manager. The environment variable is set using native-search-paths from the GHC packages. Unfortunately, upstream Cabal does presently not respect GHC_PACKAGE_PATH. If this environment variable is set, `cabal build` and other commands will terminate. For building packages, Guix does not make much use of cabal-install hence this is not as big of an issue. However, cabal-install does therefore presently not work out-of-the-box in environments created by Guix. For example, in `guix shell` environments. This makes it essentially impossible to use Guix for setting up development environments for Haskell software. Cabal upstream is aware of this issue and a patch exists to workaround this problem. The patch is currently not merged upstream due to issues related to reconfiguration (changing GHC_PACKAGE_PATH between `cabal configure` and `cabal build`). However, I would argue that this edge case is not that relevant for Guix and therefore propose including this patch with the Cabal Guix package. As outlined above, cabal-install is not usable by default presently, and I would therefore argue that this is a major improvement over the current situation. I am willing to work with Cabal upstream to have this issue fixed upstream eventually. Note that this requires patching the GHC package instead of the cabal-install package as Guix uses the version of the Cabal package <https://hackage.haskell.org/package/Cabal> distributed with GHC. See: https://github.com/haskell/cabal/issues/3728 * gnu/packages/haskell-apps.scm (cabal-install): Include patch to support the GHC_PACKAGE_PATH environment variable. Signed-off-by: Sören Tempel <soeren@soeren-tempel.net> Signed-off-by: Lars-Dominik Braun <lars@6xq.net> Change-Id: Ib77ffa937b878690d0e2d8964b534842b99da039
* gnu: Add ghc-7.0.Efraim Flashner2024-02-19
| | | | | | * gnu/packages/haskell.scm (ghc-7.0): New variable. Change-Id: I6b05c5fa87dca1d9fbea6b782b64e3d005d76c1c
* gnu: ghc-8.10: Fix build on i686-linux.Christopher Baines2023-07-17
| | | | | | | | As one profiling test fails very repeatedly on the bordeaux build farm, but ghc did seem to build successfully on other machines. * gnu/packages/haskell.scm (ghc-8.10)[arguments]: Don't run the T11627a profiling test on i686-linux.
* gnu: ghc-8.10: Avoid testsuite timeouts on i686.Lars-Dominik Braun2023-04-25
| | | | | * gnu/packages/haskell.scm (ghc-8.10)[arguments]: Add new phase 'skip-failing-tests-i686-cuirass.
* gnu: ghc-9.0: Make testsuite compatible with Python 3.10.Lars-Dominik Braun2023-04-21
| | | | | * gnu/packages/haskell.scm (ghc-9.0)[native-inputs]: Add patch and snippet to ghc-testsuite input.
* gnu: ghc-9.2: Make the skip-T21694-i686 phase unconditional.Maxim Cournoyer2023-04-14
| | | | | * gnu/packages/haskell.scm (ghc-9.2) [arguments]: Remove match conditional for the skip-T21694-i686 phase.
* gnu: ghc-9.2: Adapt testsuite to grep 3.8.Lars-Dominik Braun2023-03-12
| | | | | | | | | | | | | | Starting with version 3.8, grep emits warning messages when pattern contain spurious slashes: grep '\+' /dev/null grep: warning: stray \ before + GHC’s testsuite does not expect that and fails. * gnu/packages/patches/ghc-9.2-grep-warnings.patch: New file. * gnu/local.mk: Add it. * gnu/packages/haskell.scm (ghc-9.2)[native-inputs]: Add patch.
* Merge remote-tracking branch 'savannah/master' into core-updatesChristopher Baines2023-03-02
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: gnu/local.mk gnu/packages/autotools.scm gnu/packages/cmake.scm gnu/packages/gnuzilla.scm gnu/packages/haskell.scm gnu/packages/pdf.scm gnu/packages/python-xyz.scm gnu/packages/samba.scm gnu/packages/tex.scm gnu/packages/tls.scm gnu/packages/wxwidgets.scm
| * gnu: ghc-9.2: Increase max-silent-time.Lars-Dominik Braun2023-02-28
| | | | | | | | | | | | Times out on i686 CI, but not locally. * gnu/packages/haskell.scm (ghc-9.2)[properties]: Add max-silent-time.
| * gnu: ghc: Disable failing test on i686Lars-Dominik Braun2023-02-27
| | | | | | | | | | | | | | Conditionally, so we don’t rebuild GHC on amd64. * gnu/packages/haskell.scm (ghc-9.2)[arguments]: Conditionally add phase 'skip-T21694-i686.
| * gnu: ghc-9.2: Support static linking with glibc < 2.34.Lars-Dominik Braun2023-02-26
| | | | | | | | | | | | * gnu/packages/patches/ghc-9.2-glibc-2.33-link-order.patch: New file. * gnu/local.mk (dist_patch_DATA): Register it. * gnu/packages/haskell.scm (ghc-9.2)[origin]: Use it.
| * gnu: ghc-9.2: Increase make verbosity.Lars-Dominik Braun2023-02-26
| | | | | | | | | | | | Tests time out on ci.guix.gnu.org. * gnu/packages/haskell.scm (ghc-9.2)[arguments]: Modify #:make-flags.
| * gnu: Switch default to GHC 9.2.Lars-Dominik Braun2023-02-26
| | | | | | | | | | | | * gnu/packages/haskell.scm (ghc-9.0): Rename to just “ghc”. (ghc-9.2): Ditto. (ghc): Use ghc-9.2.
| * gnu: Rename 'git-minimal/fixed' to 'git-minimal/pinned'.Simon Tournier2023-02-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gnu/packages/version-control.scm: Rename variable 'git-minimal/fixed' to 'git-minimal/pinned', add depreciation. * gnu/packages/erlang.scm (erlang-erlware-commons)[native-inputs]: Replace 'git-minimal/fixed' with 'git-minimal/pinned'. (rebar3-git-vsn)[inputs]: Likewise. * gnu/packages/gnome.scm (gnome-photos)[native-inputs]: Likewise. * gnu/packages/gtk.scm (graphene)[native-inputs]: Likewise. * gnu/packages/haskell.scm (ghc-8.8, ghc-8.10)[native-inputs]: Likewise. * gnu/packages/julia-xyz.scm (julia-documenter)[native-inputs]: Likewise. * gnu/packages/ocaml.scm (opam, ocamlformat)[native-inputs]: Likewise. * gnu/packages/python-xyz.scm (python-check-manifest)[native-inputs]: Likewise. (python-scikit-build)[native-inputs]: Likewise. Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
* | Merge remote-tracking branch 'origin/master' into core-updatesEfraim Flashner2023-01-30
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: doc/guix.texi gnu/local.mk gnu/packages/admin.scm gnu/packages/base.scm gnu/packages/chromium.scm gnu/packages/compression.scm gnu/packages/databases.scm gnu/packages/diffoscope.scm gnu/packages/freedesktop.scm gnu/packages/gnome.scm gnu/packages/gnupg.scm gnu/packages/guile.scm gnu/packages/inkscape.scm gnu/packages/llvm.scm gnu/packages/openldap.scm gnu/packages/pciutils.scm gnu/packages/ruby.scm gnu/packages/samba.scm gnu/packages/sqlite.scm gnu/packages/statistics.scm gnu/packages/syndication.scm gnu/packages/tex.scm gnu/packages/tls.scm gnu/packages/version-control.scm gnu/packages/xml.scm guix/build-system/copy.scm guix/scripts/home.scm
| * gnu: Add ghc-9.4.Lars-Dominik Braun2022-12-31
| | | | | | | | | | | | | | * gnu/packages/haskell.scm (ghc-9.4): New variable. (ghc-bootstrap-for-9.4): New variable. (ghc-alex-bootstrap-for-9.4): New variable. (ghc-happy-bootstrap-for-9.4): New variable.
| * gnu: Add ghc-9.2.Lars-Dominik Braun2022-12-31
| | | | | | | | * gnu/packages/haskell.scm (ghc-9.2): New variable.
| * gnu: Add ghc-6.10.Ricardo Wurmus2022-10-31
| | | | | | | | * gnu/packages/haskell.scm (ghc-6.10): New variable.
| * gnu: ghc-6.6: Patch more references to /bin/sh.Ricardo Wurmus2022-10-31
| | | | | | | | | | * gnu/packages/haskell.scm (ghc-6.6)[arguments]: Patch references to /bin/sh in Cabal and process internals.
| * gnu: Add ghc-6.6.Ricardo Wurmus2022-10-28
| | | | | | | | * gnu/packages/haskell.scm (ghc-6.6): New variable.
| * gnu: ghc-6.0: Adjust configuration.Ricardo Wurmus2022-10-28
| | | | | | | | | | | | | | * gnu/packages/haskell.scm (ghc-6.0)[arguments]: Pass --enable-src-tree-happy option; remove --with-hc option because we use the same GHC for everything; add --with-gcc option to embed absolute file name of GCC. [native-inputs]: Remove unused python-2.
| * gnu: ghc-4: Embed absolute file name of GCC in GHC.Ricardo Wurmus2022-10-28
| | | | | | | | | | * gnu/packages/haskell.scm (ghc-4)[arguments]: Pass "--with-gcc" option to configure script.
| * gnu: Add ghc-6.0.Ricardo Wurmus2022-10-27
| | | | | | | | * gnu/packages/haskell.scm (ghc-6.0): New variable.
| * gnu: ghc-4: Build full compiler using provided *.hc files.Ricardo Wurmus2022-10-27
| | | | | | | | | | | | | | | | * gnu/packages/haskell.scm (ghc-4)[source]: Remove patch. [arguments]: Change to build full compiler. [native-inputs]: Remove default binutils and gcc; add tarball for hc files. * gnu/packages/patches/ghc-4.patch: Delete patch. * gnu/local.mk (dist_patch_DATA): Remove it.
| * gnu: ghc-4: Use Perl 5.6Ricardo Wurmus2022-10-16
| | | | | | | | | | * gnu/packages/haskell.scm (ghc-4)[native-inputs]: Replace perl-5.14 with perl-5.6.
| * Merge remote-tracking branch 'origin/master' into stagingEfraim Flashner2022-10-12
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: gnu/packages/gnuzilla.scm gnu/packages/graphics.scm gnu/packages/gstreamer.scm gnu/packages/gtk.scm gnu/packages/kde-frameworks.scm gnu/packages/video.scm
| | * gnu: Add ghc-9.0.itd2022-10-02
| | | | | | | | | | | | | | | | | | * gnu/packages/haskell.scm (ghc-9.0): New variable. Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
* | | gnu: ghc@8.4: Adjust test suite for Python 3.10.Marius Bakke2022-09-18
| | | | | | | | | | | | | | | | | | | | | | | | This applies the substitution added in 48718135e74994e671eaf6dc6b74ac90e1e8a939 also for GHC@8.4. Somehow this problem is not fatal there and went unnoticed. * gnu/packages/haskell.scm (ghc-8.4)[native-inputs]: Patch the test driver for Python 3.10 compatibility.
* | | gnu: GHC: Adjust tests for grep 3.8.Marius Bakke2022-09-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes a test failure introduced in commit c527b0ce23c5d9228d29c5f90892aa5f05e77347. * gnu/packages/patches/ghc-testsuite-grep-compat.patch: New file. * gnu/local.mk (dist_patch_DATA): Adjust accordingly. * gnu/packages/haskell.scm (ghc-8.6, ghc-8.8, ghc-8.10)[native-inputs]: Patch the 'ghc-testsuite' input.
* | | gnu: GHC: Adjust for Python 3.10.Marius Bakke2022-09-01
| | | | | | | | | | | | | | | * gnu/packages/haskell.scm (ghc-8.6, ghc-8.8, ghc-8.10)[native-inputs]: Patch the test suite for Python 3.10 compatibility.
* | | Merge branch 'staging' into core-updatesMarius Bakke2022-08-27
|\| |
| * | gnu: ghc-8.10: Build using ghc-8.6.Efraim Flashner2022-08-23
| | | | | | | | | | | | | | | * gnu/packages/haskell.scm (ghc-8.10)[native-inputs]: Replace ghc-8.8 with ghc-8.6.
| * | gnu: ghc-8.10: Rewrite using G-exps.Efraim Flashner2022-08-23
| | | | | | | | | | | | * gnu/packages/haskell.scm (ghc-8.10)[arguments]: Rewrite using g-exps.
| * | gnu: ghc-8.10: Add phase unconditionally.Efraim Flashner2022-08-23
| | | | | | | | | | | | | | | * gnu/packages/haskell.scm (ghc-8.10)[arguments]: Apply custom 'skip-failing-tests-i686 phase for all architectures.
| * | gnu: ghc-8.8: Rewrite using G-exps.Efraim Flashner2022-08-23
| | | | | | | | | | | | | | | * gnu/packages/haskell.scm (ghc-8.8)[arguments]: Rewrite using g-exps. Remove trailing #t from phases.
| * | gnu: ghc-8.6: Rewrite using G-exps.Efraim Flashner2022-08-23
| | | | | | | | | | | | | | | * gnu/packages/haskell.scm (ghc-8.6)[arguments]: Rewrite using g-exps. Remove trailing #t from phases.
| * | gnu: ghc-8.4: Modernize package.Efraim Flashner2022-08-23
| | | | | | | | | | | | | | | | | | | | | | | | * gnu/packages/haskell.scm (ghc-8.4)[inputs]: Use inherited inputs. [arguments]: Rewrite using g-exps. Adjust to use inherited package arguments. Use inherited 'unpack-testsuite, 'fix environment phases. Remove redundant 'fix-references phase. (ghc-8.8)[arguments]: Adjust phases based on changed inherited phases.
| * | gnu: ghc-8.0: Modernize package.Efraim Flashner2022-08-23
| | | | | | | | | | | | | | | | | | | | | * gnu/packages/haskell.scm (ghc-8.0)[arguments]: Rewrite using g-exps. Unpack testsuite tarball from the store. Remove trailing #t from phases. [inputs]: Remove input labels. Move ghc-testsuite ... [native-inputs]: ... to here.
| * | gnu: ghc-7: Update to 7.10.3.Efraim Flashner2022-08-23
| | | | | | | | | | | | * gnu/packages/haskell.scm (ghc-7): Update to 7.10.3.
| * | gnu: ghc-7: Unpack tarballs from the store.Efraim Flashner2022-08-21
| | | | | | | | | | | | | | | | | | * gnu/packages/haskell.scm (ghc-7)[arguments]: Adjust custom 'unpack-bin and 'unpack-testsuite-and-fix-bins phases to unpack tarballs directly from the store.
| * | gnu: ghc-7: Rewrite arguments using G-expressions.Efraim Flashner2022-08-21
| |/ | | | | | | | | * gnu/packages/haskell.scm (ghc-7)[arguments]: Rewrite using G-expressions. Remove trailing #t from phases.
* / gnu: ghc: Use a LibFFI variant without static trampolines.Marius Bakke2022-08-11
|/ | | | | | * gnu/packages/haskell.scm (ghc-7, ghc-8.0, ghc-8.4)[inputs]: Change from LIBFFI to LIBFFI-SANS-STATIC-TRAMPOLINES. * gnu/packages/libffi.scm (libffi-sans-static-trampolines): New variable.
* gnu: ghc@4: Replace config.sub using config package.Efraim Flashner2022-02-15
| | | | | | * gnu/packages/haskell.scm (ghc@4)[arguments]: Adjust custom 'bootstrap phase to adjust replacement of config.sub. [native-inputs]: Remove automake, add config.
* gnu: ghc@4: Build without referring to packages in commencement.scm.Ludovic Courtès2022-02-14
| | | | | | | | | | | * gnu/packages/haskell.scm (ghc-4)[arguments]: Remove #:implicit-inputs?. In 'bootstrap' phase, pass '-optc-D_GNU_SOURCE=1'. Use 'search-input-file' to locate lib{bfd,iberty}.a, and 'which' for cpp. Patch 'mk/config.mk.in'. In 'configure' phase, emit "config.cache". In 'make-boot' phase, replace "CLK_TCK" in 'nHandle.c'. [native-inputs]: Remove now-implicit inputs; remove GLIBC-2.2.5, GCC-MESBOOT0, and BINUTILS-MESBOOT. Add GCC-2.95 and BINUTILS-2.33. Remove input labels.
* gnu: ghc@4: Use 'search-patches'.Ludovic Courtès2022-02-14
| | | | * gnu/packages/haskell.scm (ghc-4)[source]: Use 'search-patches'.
* gnu: nhc98: Build with the current tool chain.Ludovic Courtès2022-02-14
| | | | | | | | * gnu/packages/patches/nhc98-c-update.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it. * gnu/packages/haskell.scm (nhc98)[source]: Use it. [arguments]: Remove #:implicit-inputs?. [native-inputs]: Remove.
* gnu: Add nhc98.Ricardo Wurmus2022-02-07
| | | | * gnu/packages/haskell.scm (nhc98): New variable.