[24.05] Haskell backports (cabal2nix, GHC expression refactor)#314679
Merged
sternenseemann merged 15 commits intoNixOS:staging-24.05from May 26, 2024
Merged
[24.05] Haskell backports (cabal2nix, GHC expression refactor)#314679sternenseemann merged 15 commits intoNixOS:staging-24.05from
sternenseemann merged 15 commits intoNixOS:staging-24.05from
Conversation
This commit has been generated by maintainers/scripts/haskell/update-hackage.sh (cherry picked from commit 0811c85)
This commit has been generated by maintainers/scripts/haskell/regenerate-hackage-packages.sh (cherry picked from commit 517b3e7)
(cherry picked from commit 1a38ad5)
(cherry picked from commit a6bb510)
(cherry picked from commit b516935)
Haddock overrides aren't ported over since the package is marked as broken anyways. (cherry picked from commit 22d0719)
(cherry picked from commit 99d1eed)
This commit has been generated by maintainers/scripts/haskell/update-hackage.sh (cherry picked from commit 3325a9b)
This only reorders the patches in some cases, as can be seen by comparing the patch lists using before and after this change: ghc902: + * /nix/store/648bdlavl7b09llwsvgzxlf3kj8di0mg-1482.patch * /nix/store/a6i4qgs42rmfvlclpqb5c4np7p66sbwx-ghc-docs-sphinx-6.0.patch * /nix/store/dxnmnf26y1mj6d4rd6r9nglbwlidqxl9-docs-sphinx-7.patch - * /nix/store/648bdlavl7b09llwsvgzxlf3kj8di0mg-1482.patch * /nix/store/cixlb1974spszv897qklibd6avlwk8ic-ghc-9.0.2-fcompact-unwind.patch ghc925: + * /nix/store/648bdlavl7b09llwsvgzxlf3kj8di0mg-1482.patch * /nix/store/a6i4qgs42rmfvlclpqb5c4np7p66sbwx-ghc-docs-sphinx-6.0.patch * /nix/store/dxnmnf26y1mj6d4rd6r9nglbwlidqxl9-docs-sphinx-7.patch - * /nix/store/648bdlavl7b09llwsvgzxlf3kj8di0mg-1482.patch * /nix/store/vm78w4fi23blaqq2ahl3m5842yri7lik-6c796218c92f93c95e94d5ec2d077f6956f68e98.patch ghc926: + * /nix/store/648bdlavl7b09llwsvgzxlf3kj8di0mg-1482.patch * /nix/store/a6i4qgs42rmfvlclpqb5c4np7p66sbwx-ghc-docs-sphinx-6.0.patch * /nix/store/dxnmnf26y1mj6d4rd6r9nglbwlidqxl9-docs-sphinx-7.patch - * /nix/store/648bdlavl7b09llwsvgzxlf3kj8di0mg-1482.patch * /nix/store/vm78w4fi23blaqq2ahl3m5842yri7lik-6c796218c92f93c95e94d5ec2d077f6956f68e98.patch ghc927: + * /nix/store/648bdlavl7b09llwsvgzxlf3kj8di0mg-1482.patch * /nix/store/a6i4qgs42rmfvlclpqb5c4np7p66sbwx-ghc-docs-sphinx-6.0.patch * /nix/store/dxnmnf26y1mj6d4rd6r9nglbwlidqxl9-docs-sphinx-7.patch - * /nix/store/648bdlavl7b09llwsvgzxlf3kj8di0mg-1482.patch * /nix/store/vm78w4fi23blaqq2ahl3m5842yri7lik-6c796218c92f93c95e94d5ec2d077f6956f68e98.patch ghc928: + * /nix/store/648bdlavl7b09llwsvgzxlf3kj8di0mg-1482.patch * /nix/store/a6i4qgs42rmfvlclpqb5c4np7p66sbwx-ghc-docs-sphinx-6.0.patch * /nix/store/dxnmnf26y1mj6d4rd6r9nglbwlidqxl9-docs-sphinx-7.patch - * /nix/store/648bdlavl7b09llwsvgzxlf3kj8di0mg-1482.patch * /nix/store/vm78w4fi23blaqq2ahl3m5842yri7lik-6c796218c92f93c95e94d5ec2d077f6956f68e98.patch ghc945: - * /nix/store/vm78w4fi23blaqq2ahl3m5842yri7lik-6c796218c92f93c95e94d5ec2d077f6956f68e98.patch * /nix/store/a6i4qgs42rmfvlclpqb5c4np7p66sbwx-ghc-docs-sphinx-6.0.patch * /nix/store/dxnmnf26y1mj6d4rd6r9nglbwlidqxl9-docs-sphinx-7.patch -ghc946: * /nix/store/vm78w4fi23blaqq2ahl3m5842yri7lik-6c796218c92f93c95e94d5ec2d077f6956f68e98.patch +ghc946: * /nix/store/dxnmnf26y1mj6d4rd6r9nglbwlidqxl9-docs-sphinx-7.patch + * /nix/store/vm78w4fi23blaqq2ahl3m5842yri7lik-6c796218c92f93c95e94d5ec2d077f6956f68e98.patch * /nix/store/grgg5qjcwj5n8dyp50z4gwfd9vig09px-9.4.6-bytestring-posix-source.patch ghc947: - * /nix/store/vm78w4fi23blaqq2ahl3m5842yri7lik-6c796218c92f93c95e94d5ec2d077f6956f68e98.patch * /nix/store/dxnmnf26y1mj6d4rd6r9nglbwlidqxl9-docs-sphinx-7.patch -ghc948: * /nix/store/vm78w4fi23blaqq2ahl3m5842yri7lik-6c796218c92f93c95e94d5ec2d077f6956f68e98.patch +ghc948: * /nix/store/dxnmnf26y1mj6d4rd6r9nglbwlidqxl9-docs-sphinx-7.patch + * /nix/store/vm78w4fi23blaqq2ahl3m5842yri7lik-6c796218c92f93c95e94d5ec2d077f6956f68e98.patch (cherry picked from commit ea9498a)
Conditional whitespace was only necessary to prevent rebuilds. We can now revert this since it doesn't make a functional difference. (cherry picked from commit 131d97d)
Without the change the eval fails as:
$ nix build --no-link -f. haskell.packages.ghc865Binary.exceptions
error: attribute 'exceptions_0_10_7' missing
at pkgs/development/haskell-modules/configuration-ghc-8.6.x.nix:98:16:
97| # This became a core library in ghc 8.10., so we don’t have an "exception" attribute anymore.
98| exceptions = self.exceptions_0_10_7;
| ^
99|
Did you mean exceptions_0_10_8?
(cherry picked from commit 8b65aca)
Without the change the eval fails as:
$ nix build --no-link -f. haskell.packages.ghcjs.exceptions
error:
… in the left operand of the update (//) operator
at pkgs/development/haskell-modules/lib/compose.nix:40:7:
39| mkDerivation = drv: (args.mkDerivation drv).override f;
40| })) // {
| ^
41| overrideScope = scope: overrideCabal f (drv.overrideScope scope);
error: attribute 'exceptions_0_10_7' missing
at pkgs/development/haskell-modules/configuration-ghcjs.nix:30:26:
29| stm = doJailbreak self.stm_2_5_3_1;
30| exceptions = dontCheck self.exceptions_0_10_7;
| ^
31|
Did you mean exceptions_0_10_8?
(cherry picked from commit b1f5c64)
(cherry picked from commit f909eba)
This commit has been generated by maintainers/scripts/haskell/regenerate-hackage-packages.sh (cherry picked from commit 07641f2)
This commit has been generated by maintainers/scripts/haskell/mark-broken.sh based on *evaluation [1806530](https://hydra.nixos.org/eval/1806530) of nixpkgs commit [edc6c26](https://github.com/NixOS/nixpkgs/commits/edc6c261ab4ffb277af409e37a52718a91b255bc) as of 2024-05-25 11:49 UTC* from the haskell-updates jobset on hydra under https://hydra.nixos.org/jobset/nixpkgs/haskell-updates (cherry picked from commit d8550b8)
maralorn
approved these changes
May 25, 2024
Member
maralorn
left a comment
There was a problem hiding this comment.
I agree this is a good idea.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of changes
Backport of #312934. We mainly want
javascript-unknown-ghcjsas it should. Sadly, this requires a Hackage bump and some unrelated changes to keep the package set working properly.