forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* haskellPackages: stackage LTS 22.31 -> LTS 22.33 This commit has been generated by maintainers/scripts/haskell/update-stackage.sh * all-cabal-hashes: 2024-07-31T18:11:52Z -> 2024-08-19T17:17:03Z This commit has been generated by maintainers/scripts/haskell/update-hackage.sh * haskellPackages: regenerate package set based on current config This commit has been generated by maintainers/scripts/haskell/regenerate-hackage-packages.sh * haskellPackages.Cabal_3_{10_3,12_1}_0: use process 1.6.22.0 * haskellPackages.feedback: use safe-coloured-text-layout 0.2.0.1 * haskellPackages.entropy: build with js backend * haskell.compiler.ghc*: set stage 0 tools This is easy in comparison since these tools won't end up in GHC's settings nor need to be available at runtime, so we can use the *_FOR_BUILD environment variables. It is important to add buildCC to depsBuildBuild to engage the stdenv/wrapper script machinery properly. Co-authored-by: sternenseemann <[email protected]> * haskell.compiler.ghc*: fix libffi cross dependency * haskell.compiler.ghc*: correctly account for ncurses in cross 1. Explicitly set WITH_TERMINFO. We usually match GHC's behavior well, but it is better to tie the Nix option to make explicitly. Unfortunately, the same is very complicated to achieve with hadrian (iirc). 2. Disable enableTerminfo if we are cross-compiling. This matches the behavior of GHC's build system, so we'll have to match it now. It also reduces the ncurses-related headache a bit. 3. Stop passing --with-curses* flags. Unfortunately, GHC does not account for the fact that different platforms need different ncurses libraries. This is somewhat migitated by the fact that ncurses is only ever needed for the build platform if we are cross compiling, but I seem to remember it leaking into the final GHC somehow. A more reliable alternative is relying on the cc/ld wrapper scripts, as they'll always pull out the correct ncurses out of the environment when GHC's build system passes -lcurses. 4. Unconditionally add ncurses to depsBuildBuild. Stage0 unconditionally builds terminfo (maybe the stage1 compiler needs it?), so we need to make sure that ncurses for the build platform is available. Co-authored-by: sternenseemann <[email protected]> * haskell.compiler.ghc*: don't configure --host * haskell.compiler.ghc*: use target CC in settings * haskell.compiler.ghc*: don't cross-compile haddock * haskell.compiler.ghc*: add enableUnregisterised * haskell.compiler.ghc*: assert cross is possible * haskell.compiler.ghc*: allow all platforms Propagating the supported platforms of the boot compiler doesn't make much sense when unregistered cross-compilation is possible. * haskell.compiler.ghc*: use GHC from pkgsBuildBuild * tests.cross.sanity: Add GHC to catch regressions This is to ensure that Haskell users on platforms that lack official bindists still have a convenient means of getting GHC running natively. In my admittedly somewhat limited testing on RISC-V, GHC 8.10.7 is able to bootstrap native builds for 9.2.8 and 9.4.5. GHC 9.2.8 and 9.4.5 are unable to bootstrap themselves and 9.6.2 when cross-compiled. If you're looking at this commit to see whether you can safely upgrade the compiler used here to remove 8.10, please try cross-compiling 9.0 or later and then booting a native GHC with it. * ghc-settings-edit: init at 0.1.0 * !fixup haskell.compiler.ghc948: use ghc-settings-edit * fixup! ghc-settings-edit * haskell.compile.ghc{96*,98*,910*}: fix libdw cross dependency * !fixup make/native-bignum: use toolPath --------- Co-authored-by: maralorn <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: sternenseemann <[email protected]> Co-authored-by: Alexandre Esteves <[email protected]> Co-authored-by: Alex Tunstall <[email protected]>
- Loading branch information
1 parent
c4803ca
commit 9c02e9a
Showing
13 changed files
with
1,953 additions
and
776 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"commit": "32e512a9cd79f962a8023e1c8c1a4db17d9b2fd8", | ||
"url": "https://github.com/commercialhaskell/all-cabal-hashes/archive/32e512a9cd79f962a8023e1c8c1a4db17d9b2fd8.tar.gz", | ||
"sha256": "1wiy2fsz8a1gx6mbzq8ns6wvns6kh2aigxczw0f9q7qbkd22kdil", | ||
"msg": "Update from Hackage at 2024-07-31T18:11:52Z" | ||
"commit": "4670ba3f52eae6737137ddcb817182f3daad4f26", | ||
"url": "https://github.com/commercialhaskell/all-cabal-hashes/archive/4670ba3f52eae6737137ddcb817182f3daad4f26.tar.gz", | ||
"sha256": "18q5shdmh12147502135q6132rmzp29qfjhwrcjwidl0pi9ki70i", | ||
"msg": "Update from Hackage at 2024-08-19T17:17:03Z" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.