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

haskellPackages.superbuffer: fix build #58199

Merged
merged 1 commit into from Mar 25, 2019
Merged

Conversation

rnhmjoj
Copy link
Contributor

@rnhmjoj rnhmjoj commented Mar 24, 2019

Motivation for this change

I have a package that depends on this.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Assured whether relevant documentation is up to date
  • Fits CONTRIBUTING.md.

QuickCheck is used for tests, which passes even on more recent versions, so I removed the constaint.
Should I regenerate hackage-packages or wait it for it to be automatically generated?

@peti
Copy link
Member

peti commented Mar 24, 2019

Should I regenerate hackage-packages or wait it for it to be automatically generated?

You can edit hackage-packages.nix manually to remove the broken = true; from the package so that it can be built immediately. A full re-generation of the file will happen automatically soon.

@peti
Copy link
Member

peti commented Mar 25, 2019

@GrahamcOfBorg build haskellPackages.superbuffer

# https://github.com/agrafix/superbuffer/pull/2
superbuffer = overrideCabal super.superbuffer (drv: {
postPatch = ''
sed -i 's#QuickCheck < 2.10#QuickCheck < 2.13#' superbuffer.cabal
Copy link
Member

Choose a reason for hiding this comment

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

If you wanted to go all out you could fetchpatch that change from https://github.com/agrafix/superbuffer/pull/2.patch and apply it instead of using sed. It's not a big difference, but the advantage is that the patch will fail to apply once an update comes out that fixes the issue and then we'll notice that the patch can be removed.

@peti peti merged commit 3e113f5 into NixOS:master Mar 25, 2019
@rnhmjoj
Copy link
Contributor Author

rnhmjoj commented Mar 25, 2019

Thank you!

@rnhmjoj rnhmjoj deleted the superbuffer branch March 28, 2019 00:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants