Skip to content

haskellPackages.espial: Use latest on GitHub (0.0.16) to unbreak #217010

Merged
cdepillabout merged 3 commits intoNixOS:haskell-updatesfrom
dalpd:dad-fix-espial
Feb 19, 2023
Merged

haskellPackages.espial: Use latest on GitHub (0.0.16) to unbreak #217010
cdepillabout merged 3 commits intoNixOS:haskell-updatesfrom
dalpd:dad-fix-espial

Conversation

@dalpd
Copy link
Contributor

@dalpd dalpd commented Feb 18, 2023

Description of changes

Espial was broken because the version being tracked had a restrictive upper
bound on bytestring, but upstream doesn't have that constraint anymore.

Things done

Replacing the espial source with the latest available upstream. Also putting myself down as the maintainer for this package and patat.

  • 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 all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 23.05 Release Notes (or backporting 22.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
  • Fits CONTRIBUTING.md.

@github-actions github-actions bot added the 6.topic: haskell General-purpose, statically typed, purely functional programming language label Feb 18, 2023
@ofborg ofborg bot added 8.has: package (new) This PR adds a new package 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. labels Feb 18, 2023
Comment on lines 1264 to 1269
Copy link
Member

Choose a reason for hiding this comment

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

We generally prefer applying patches, rather than overriding the source, since patches will (likely) break when a new version is released to Hackage. When we override the source, we may forget about the override and end up many versions behind.

Would it be possible to get to the latest version with a patch file? Also, could you create an issue on the repo asking for a Hackage release?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah yeah, I was trying to apply an additional patch first to get things working and seeing this was behind thought I'd just replace the source, but what you said makes sense. I'll open an issue and update this to use another 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.

@cdepillabout Actually, do you think it makes sense to just jailbreak this for now since the upper bound on bytestring is the only thing causing the build to fail? We can keep an eye on the issue and go with a local patch file if we don't hear back.

I could also just use this patch but then would have to have almost a dozen of files listed under excluded for it to work.

Copy link
Member

Choose a reason for hiding this comment

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

In general: When a patch is not feasible a jailbreak + an assert on the current version is probably the right way to go.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Alright, that's good know! Updated to assert the current version and jailbreak.

Espial was broken because the version being tracked had a restrictive upper
bound on bytestring that isn't neccessary. Here we jailbreak after asserting
the version is 0.0.11 so that it fails once we there's a new release.
@cdepillabout
Copy link
Member

Looks good, thanks!

@cdepillabout cdepillabout merged commit e0b99a9 into NixOS:haskell-updates Feb 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: haskell General-purpose, statically typed, purely functional programming language 8.has: package (new) This PR adds a new package 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments