Commit Graph

124 Commits

Author SHA1 Message Date
sternenseemann
bd6942679c haskell.packages.*.ghc-tags: unbreak
This just requires picking the right version of the package for all
compiler versions.
2024-06-04 14:51:22 +02:00
sternenseemann
8ff463e9fc haskell.packages.ghc90.ghc-lib*: use 9.2.* versions
This matches what we do for GHC 8.10.7 where we also can't build the 9.6
versions.
2024-06-04 14:49:56 +02:00
sternenseemann
0dd2e00563 haskell.packages.ghc{810,90}.hashable: don't pull in os-string
os-string only becomes a dependency after GHC 9.2 and can't be built
with these older compilers. Fixes build of elmPackages.elm-instrument.
2024-04-16 23:41:41 +02:00
sternenseemann
b79cc961fe haskell.packages.ghc{810,90}.primitive-addr: lift lower base bound 2024-03-23 13:15:46 +01:00
sternenseemann
c312cd21f6 haskell.packages.*.base-compat-batteries: provide extra compat deps 2024-01-13 15:24:13 +01:00
sternenseemann
a05474beda haskell.packages.*.OneTuple: provide base-orphans where necessary 2024-01-13 15:24:13 +01:00
Rodney Lorrimar
8ecc123cf0 haskell.packages.*.{these,OneTuple}: provide compat pkg where needed
Co-authored-by: sternenseemann <sternenseemann@systemli.org>
2024-01-11 14:49:29 +01:00
sternenseemann
a2dd913a78 haskell.packages.*.indexed-traversable: provide compat lib if needed 2024-01-08 12:18:14 +01:00
sternenseemann
e650bbd6eb haskell.packages.ghc90.ghc-tags: 1.5 -> 1.6
The GHC 9.0 package set uses ghc-lib 9.4.*
2024-01-07 12:12:47 +01:00
sternenseemann
d0d080887c haskell.packages.ghc90.haskell-language-server: remove at 2.5.0.0
Support for GHC 9.0 was dropped in this version, so we can no longer
ship it.
2024-01-06 18:33:37 +01:00
sternenseemann
7c8c63e3eb haskellPackages.language-haskell-extract: unify overrides
All versions have this patch that conditionally enables support for
template-haskell >= 2.16, so we can fold them into one.
2024-01-06 18:33:37 +01:00
maralorn
91065f31dd
Merge pull request #275606 from sternenseemann/misc-release-haskell
haskell: fixes for the benefit of the haskell-updates jobset
2024-01-01 14:19:00 +01:00
sternenseemann
21acd3b787 haskell.packages.*.{terminfo,xhtml}: allow builds on Hydra for cross
We have some jobs that hit this case in release-haskell.nix, but they
are not actually created, since we forgot to relax hydraPlatforms…
2023-12-20 10:50:28 +01:00
Naïm Favier
4e4b31df11
haskell.packages.ghc90.http-types: disable checks 2023-12-09 15:40:30 +01:00
maralorn
e6483fb7e2
haskell.packages.ghc90.hspec-megaparsec: Fix build
Needed for HLS
2023-11-18 00:31:40 +01:00
maralorn
40ce16ef93
haskell-language-server: Fix for all supported GHCs 2023-10-22 01:23:30 +02:00
maralorn
f39536498c
haskell.packages.ghc90.haskell-language-server: Fix build 2023-08-22 01:51:14 +02:00
sternenseemann
4f88c9d750 haskell.packages.*.weeder: provide algebraic-graphs < 0.7 if needed
weeder has no actively maintained support for older GHC versions, so we
need to partially restore historic install-plans when it is affected by
breaking changes in other libraries than GHC.
2023-08-14 10:58:24 +02:00
maralorn
3f86662951
haskell.packages.ghc9{0,2}.haskell-language-server: Fix build 2023-08-08 22:49:51 +02:00
sternenseemann
0b4156230b haskell.packages.*.ghc-source-gen: shuffle broken flags around
ghc-source-gen being broken is the norm now, as it only supports
GHC < 9.4. To keep tabs on it still (it is required for HLS some of the
time), we add it to release-haskell.nix.
2023-07-25 13:01:20 +02:00
sternenseemann
500b36d057 all-cabal-hashes: 2023-07-19T20:56:38Z -> 2023-07-24T19:28:29Z
The main motivation for this is that the latest versions of hspec-core
and hspec-expectations got out of sync due to an unlucky timing on the
hackage snapshot update. As a consequence, we weren't able to build
cabal-install in some package sets. Additionally, this brings a version
of futhark that can be built with the lsp version we ship.

This commit has been generated by maintainers/scripts/haskell/update-hackage.sh
and maintainers/scripts/haskell/regenerate-hackage-packages.nix.

Additional changes:

* Adapt to new xhtml version (still doesn't match the version normally
  shipped by the respective GHC as a core library).

* Adapt to new versions of hspec* and pandoc
2023-07-25 02:21:57 +02:00
Janus Troelsen
ebcb9db21d haskell.packages.{ghc90x,ghc94x}: Remove unnecessary jailbreaks 2023-07-16 16:23:29 +00:00
sternenseemann
5407503fba haskell.packages.*.cabal-install: provide correct versions of deps
Some packages cabal-install needed a certain version range (cabal-install-solver
and resolv) have versions incompatible with these in Stackage LTS 21. We can,
however, easily provide the necessary ones.

Additionally, we clean up some old resolv related overrides that are no longer
necessary or we no longer care about (being able to build cabal-install with
GHC 8.6, namely).
2023-07-02 14:22:21 +02:00
sternenseemann
f50da30a5d haskell.packages.*.system-cxx-std-lib: make sure attr always exists
GHC 9.4 introduced a virtual package for linking against the C++
standard library. Since some packages depend on it when configured with
GHC 9.4 (as hackage2nix does), we need to make sure the attribute exists
or some packages will fail to evaluate. The may still build, even though
there is no shim for lower GHC versions (as far as I know).
2023-07-01 19:31:29 +02:00
sternenseemann
babf4f9327 haskell.packages.*.hashable: provide data-array-byte for GHC < 9.4
This dependency is no longer necessary for GHC >= 9.4, but we need to
make it available for GHC < 9.4.
2023-07-01 13:57:38 +02:00
sternenseemann
4c2f247e11 haskell.packages.*.Cabal-syntax: expose dummy packages for GHC < 9.4
Before Cabal >= 3.8, Cabal-syntax did not exist, but there is a dummy
package Cabal-syntax-3.6.0.0 which can be used to prevent the constraint
solver from picking mutually incompatible versions of Cabal and
Cabal-syntax. Since we are now solving flags with Cabal >= 3.8, many
packages have a dependency on Cabal-syntax they did not have before,
requiring us to have a matching attribute in every package set. Using
the dummy package is the safest solution, although it is not required in
every case.

Fixes eval of jailbreak-cabal for GHC < 9.4.
2023-07-01 13:17:43 +02:00
sternenseemann
0cce97d64e haskell.packages.*.vector: clean up and unify overrides, run tests
- The dontCheck overrides are not necessary completely. It seems that
  there is some kind of issue with the doctest suite, but we can run the
  other ones.

- We need a jailbreak everywhere due to doctest (ironically), so we can
  move that into the common configuration.

- The i686 issue has been closed upstream. Tested locally to confirm
  that it is indeed not a problem anymore.
2023-03-20 14:14:41 +01:00
sternenseemann
5a86855e00 haskell.packages.*: reflect terminfo update for cross compilation
terminfo had a new release on hackage and we only ship the latest
version currently, so every GHC gets the newest version. Whether this is
correct, is another question, occurs to me – we'll have to look into
whether we should fix this at some point.
2023-03-02 13:58:51 +01:00
sternenseemann
bdbfe10efb haskell.packages.*.cabal-install{,-solver}: unify overrides
Since the overrides are practically the same for all but the latest GHC
version, we can move the override into configuration-common.nix and rely
on a few conditionals in the overlay assembly — and end up with less
copying around!
2023-02-18 21:55:25 +01:00
sternenseemann
2e9ff9aa98 haskell.packages.*.ghc-tags: pick compatible version
Since there is probably more movement going forward, testing this on
Hydra for multiple GHC versions seems sensible.
2023-02-18 20:16:36 +01:00
maralorn
8c4865a950 haskell-modules/configuration-ghc-*.nix: Remove trailing whitespaces 2022-12-30 18:04:51 +01:00
maralorn
3b14e60bab haskell-language-server: Fix build for 1.9.0.0 for all ghc versions 2022-12-30 17:21:48 +01:00
sternenseemann
439841cc15 haskellPackages.multistate: allow hspec == 2.9.* 2022-12-30 12:00:54 +01:00
sternenseemann
e238c3fdaa haskell.packages.*.binary-orphans: provide OneTuple when necessary
The binary-orphans dependency on OneTuple is only activated if GHC < 9.2
which means hackage2nix won't emit this dependency anymore.
2022-12-28 14:10:41 +01:00
maralorn
65d6fc555b haskell-language-server: Enable reenable dependencies for older ghcs 2022-12-24 17:46:42 +01:00
Naïm Favier
e19cdbebc9
haskell.packages.ghc902.haskell-language-server: oops
I accidentally committed a test changing `self` to `super` which makes the
build fail. We definitely want `self` here, see
https://github.com/NixOS/nixpkgs/pull/205902 for why.
2022-12-16 13:49:16 +01:00
Naïm Favier
264178657f
haskell.packages.ghc902.haskell-language-server: fix 2022-12-13 12:23:03 +01:00
Dennis Gosnell
3eafa296cf
haskell.packages.ghc90.hashable: change addExtraLibrary to addBuildDepend 2022-11-26 00:49:41 -05:00
Dennis Gosnell
6116709ed0
haskell.packages.ghc90.hashable: add missing dep of base-orphans 2022-11-26 00:47:42 -05:00
sternenseemann
270246ddd9 haskellPackages: adapt to process 1.6.15.0 -> 1.6.16.0 2022-10-27 22:11:24 +02:00
Jakob Leifhelm
8d0a5da007 haskellPackages.sv2v: Do Jailbreak 2022-10-14 11:12:53 -04:00
maralorn
7c2fda45cc haskell-language-server: 1.7.0.0 -> 1.8.0.0 2022-09-21 05:23:07 +02:00
sternenseemann
f6b35ce8e3 haskellPackages.cabal-install-solver: allow building directly
This is a dependency of cabal-install and builds by virtue of its
overrideScope. We also want to make sure it builds independently, so
that it doesn't get marked as broken at the very least.
2022-08-27 10:02:59 +02:00
sternenseemann
4ad395f0c9 cabal-install: adapt to changes for 3.8.1.0
https://github.com/haskell/cabal/blob/cabal-install-v3.8.1.0/release-notes/cabal-install-3.8.1.0.md
2022-08-20 12:48:04 +02:00
sternenseemann
f39aee2d8b haskellPackages.terminfo: not a core pkg if cross compiling
GHC's cross build flavours disable the terminfo package, so it will
never be included if we are cross-compiling – setting it to null thus
breaks all builds depending on the package.

To fix this problem, we use the versioned attribute generated by
hackage2nix, just like we do for xhtml.

Closes #182785.
2022-07-25 23:42:29 +02:00
sternenseemann
5944112af7 haskell.packages.ghc902.weeder: pin to < 2.4
weeder 2.4.0 /requires/ GHC 9.2.
2022-05-31 12:41:31 +02:00
sternenseemann
813f8b5efb haskellPackages: xhtml is not bundled if haddock is disabled
The xhtml library is only built as part of the GHC build process if GHC
is disabled. This means that no GHC cross compiler has xhtml bundled,
since haddock can't be built if GHC is a cross compiler (see relevant
notes in the GHC nix expressions). This means that all packages
depending on xhtml would currently fail to build when cross-compiled, as
haskellPackages would assume it'd be provided by GHC. This is fixed by
this commit.

pkgsStatic hits this case, so we test compilation of xhtml for these
package sets which will remind us to update the attribute name whenever
its version changes.
2022-04-29 15:27:02 +02:00
Robert Hensing
517cb71b02 haskellPackages.inline-c-cpp: Fix tests on darwin 2022-04-01 16:56:31 +02:00
Naïm Favier
f60832c17a
haskellPackages: move knob patch to configuration-common 2022-03-22 15:58:52 +01:00
Naïm Favier
0ba189f2d7
haskellPackages.knob: add patch for GHC 9 support
Patch sent to upstream via email, but the package hasn't been updated in
ten years.

Changes:
- IO.seek should now return the new offset so I used modifyMVar instead
  of modifyMVar_
- mkFileHandle now requires a RawIO instance for Device. Since this was
  not the case before and I don't think we need to actually support raw
  IO, I used DeriveAnyClass.
2022-03-16 02:10:08 +01:00