Fix haskellPackages.dhall_1_28_0 and spago#75931
Fix haskellPackages.dhall_1_28_0 and spago#75931ijaketak wants to merge 2 commits intoNixOS:masterfrom ijaketak:spago-0.12.1-dhall-1.28.0
Conversation
There was a problem hiding this comment.
Could you expand this comment so that the nixpkgs maintainers will have a better idea when these overrides can be removed (without having to follow the link)?
There was a problem hiding this comment.
Done. Link was wrong.
dhall-lang/dhall-haskell@dedd5e0
There was a problem hiding this comment.
This file is generated with cabal2nix.
Could you instead add these patches to pkgs/developement/haskell/configuration-common.nix?
There was a problem hiding this comment.
If possible, we generally don't like to carry around patches in the nixpkgs repo, but instead fetch them from upstream.
Could you pull this patch directly from upstream and apply it using fetchPatch. If you grep through pkgs/development/haskell-modules/configuration-common.nix you should be able to find examples of people pulling in patches from GitHub PRs.
There was a problem hiding this comment.
purescript/spago#529 cannot be applied for spago-0.12.1. different patch required.
There was a problem hiding this comment.
@ijaketak Please comment that on top of the patch.
cdepillabout
left a comment
There was a problem hiding this comment.
@ijaketak Thanks a lot for trying to fix up spago here.
If you take care of the above problems, we can merge this in.
Alternatively, it may just be a lot easier to create a dhall_1_27_0 derivation and setup spago so it uses it. See #75449 (comment) where I describe how to do this.
|
@ijaketak Could you change this line to be I messed this up when I originally submitted the PR adding |
|
@ijaketak I got spago building statically. I did it by just using purescript/spago#528 (comment) This was pretty easy. I recommend you do the same for this PR. |
|
Let me conclude that this PR is completed as |
nh2
left a comment
There was a problem hiding this comment.
I found two places that should be self instead of super (so that they can be further overridden).
Beyond that and adding a comment for the reason of the patch, this change looks good to me.
There was a problem hiding this comment.
| prettyprinter-ansi-terminal = super.prettyprinter-ansi-terminal.override { prettyprinter = super.prettyprinter_1_5_1; }; | |
| prettyprinter-ansi-terminal = super.prettyprinter-ansi-terminal.override { prettyprinter = self.prettyprinter_1_5_1; }; |
There was a problem hiding this comment.
| prettyprinter = super.prettyprinter_1_5_1; | |
| prettyprinter = self.prettyprinter_1_5_1; |
|
@ijaketak I'd like to bump spago to 0.13.0, since a new version was just released. Do you mind if I take over this PR for now? I'll get dhall-1.28.0 building (basically using what you currently have here), as well as fix up spago to 0.13.0. |
|
@cdepillabout No, please take over. |
dhall-lang/dhall-haskell@dedd5e0 This raises the lower bound on prettyprinter to 1.5.1 since `removeTrailingWhitespace` is buggy in earlier versions.
Motivation for this change
Fix #75930. See also purescript/spago#529
Things done
sandboxinnix.confon non-NixOS linux)nix-shell -p nix-review --run "nix-review wip"./result/bin/)nix path-info -Sbefore and after)Notify maintainers
cc @