-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
darcs: compile with ghc 8.8 #84573
darcs: compile with ghc 8.8 #84573
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left a few comments above.
Also, could you target the haskell-updates
branch for this instead of master
?
# cabal 3.0 support | ||
( pkgs.fetchpatch { | ||
url = "https://raw.githubusercontent.com/input-output-hk/haskell.nix/9f8a6e3e5755e4b917686c6267b1135caf724f1f/patches/darcs-setup.patch"; | ||
sha256 = "sha256-LJDc22EUHchm7hzVVs6LvG115T6OBAI8BdmsGK38GdE="; | ||
}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add a little bit more about what this patch does (and why you're pulling it from haskell.nix and not the darcs upstream)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This patch comes from the differences between the 2.14.2 version and the master.
Ok, I'll try to figure out how to deal with upstream repo and bug tracker...
Yeah sure. |
I've run the commands and produced this: |
e9985e2
to
50a8fd9
Compare
Thanks. I took your patch and remove the changes in comments ;-) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you rebase this again on top of haskell-updates
? It looks like haskell-updates
has advanced, and this PR has picked up some unnecessary commits.
pkgs/development/haskell-modules/configuration-hackage2nix.yaml
Outdated
Show resolved
Hide resolved
@@ -45,6 +45,13 @@ self: super: { | |||
# Needs older QuickCheck version | |||
attoparsec-varword = dontCheck super.attoparsec-varword; | |||
|
|||
# http://bugs.darcs.net/issue2642 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for submitting this upstream. It looks like the author replied.
Maybe you should link the author to the patch from @nh2? It might be useful to the author as a starting point to start updating darcs in a backward-compatible way.
50a8fd9
to
65317aa
Compare
Hi, for some reason the patch does not apply during the build:
but outside, it applies cleanly:
|
Ok, |
65317aa
to
9581bdb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, this looks like it is almost ready to go.
The only thing left is to remove darcs
from the broken packages list in pkgs/development/haskell-modules/configuration-hackage2nix.yaml
, since this PR fixes it.
9581bdb
to
0389126
Compare
@GrahamcOfBorg build darcs |
This compiled on x86_64 linux, so it's already a positive direction. If the OSX build happens to fail, then lets fix that up in a future PR. Thanks for taking the time to fix this! |
Motivation for this change
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)