Skip to content
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

Fix #19 #20

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Fix #19 #20

wants to merge 2 commits into from

Conversation

angerman
Copy link

@angerman angerman commented Dec 7, 2022

This fixes #19 by downgrading the compiler to 8.10 (I still don't think 9.0 should be used in production). bytestring < 0.11.4 (which as of today has not been released to https://hackage.haskell.org/package/bytestring), is broken, as per haskell/bytestring#538. This in turn shows up in yesodweb/wai#894, and ultimately causes #19.

This fixes aristanetworks#19 by downgrading the compiler to 8.10 (I still don't think 9.0 should be used in production).
bytestring < 0.11.4 (which as of today has not been released to https://hackage.haskell.org/package/bytestring),
is broken, as per haskell/bytestring#538. This in turn shows up in yesodweb/wai#894, and ultimately causes aristanetworks#19.
@angerman
Copy link
Author

angerman commented Dec 7, 2022

This will now use bytestring-0.10.12.0 instead of bytestring-0.11.3.1

@angerman
Copy link
Author

angerman commented Dec 7, 2022

Ok. This does not work, it did work in my shell because I had a newer cabal-install. However this change allows cabal2nix to parse it, but the Setup.hs that's being built by the nixpkgs haskell infra, links against the lib:Cabal shipped with GHC, and as such is incompatible. With cabal-version: 3.6

@angerman
Copy link
Author

angerman commented Dec 7, 2022

This is now a very ugly hack that breaks macOS, but works on linux. I would not have expected me to break macOS.

Comment on lines +19 to +21
# use cabal2nix from 9.2 here, because cabal2nix from 8.10 can't
# read cabal-version: 3.6
pkgsNew.haskell.packages.ghc92.cabal2nix;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you still need this change if you downgrade the required Cabal version to 2.2?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@angerman What do you think? I do not think this would be required.

jcumming added a commit to jcumming/nix-serve-ng that referenced this pull request Oct 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BufferFull error on specific store path
3 participants