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.leveldb-haskell: fix build #166892

Closed
wants to merge 1 commit into from

Conversation

rnhmjoj
Copy link
Contributor

@rnhmjoj rnhmjoj commented Apr 2, 2022

Description of changes

Fix tests failure for base≥4.15.

Things done
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested, as applicable:
  • Tested compilation of haskellPackages.leveldb-haskell
  • Tested basic functionality of all binary files (none)
  • 22.05 Release Notes (or backporting 21.11 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
    • (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes
  • Fits CONTRIBUTING.md.

@ofborg ofborg bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux labels Apr 2, 2022
@@ -23,6 +23,12 @@ self: super: {
# There are numerical tests on random data, that may fail occasionally
lapack = dontCheck super.lapack;

# fix tests failure for base≥4.15
leveldb-haskell = appendPatch (fetchpatch {
url = "https://github.com/kim/leveldb-haskell/pull/41.patch";
Copy link
Member

Choose a reason for hiding this comment

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

Using the commit is a bit more robust as it wouldn't change content on a force push:

Suggested change
url = "https://github.com/kim/leveldb-haskell/pull/41.patch";
url = "https://github.com/kim/leveldb-haskell/commit/f5249081f589233890ddb1945ec548ca9fb717cf.patch";

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Uhm, it's true but also hides the fact the patch comes from a pull request.
I put the link in the comment.

@sternenseemann
Copy link
Member

Cherry-picked as 6a36abc.

@rnhmjoj
Copy link
Contributor Author

rnhmjoj commented Apr 2, 2022

Thank you!

@rnhmjoj rnhmjoj deleted the pr-hask-leveldb branch July 10, 2023 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.topic: haskell 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants