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

haskell: ghcjs packages: fix ghcjs-dom-jsffi with newer Cabal #23615

Merged
merged 1 commit into from Mar 14, 2017

Conversation

ljli
Copy link
Contributor

@ljli ljli commented Mar 7, 2017

Motivation for this change
Things done
  • Tested using sandboxing
    (nix.useSandbox on NixOS,
    or option build-use-sandbox in nix.conf
    on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • Linux
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

@mention-bot
Copy link

@ljli, thanks for your PR! By analyzing the history of the files in this pull request, we identified @cstrahan, @Profpatsch and @k0001 to be potential reviewers.

@Profpatsch
Copy link
Member

I don’t think that fixes it; normally you can’t simply replace cabal, since it’s a distribution package.

@ljli
Copy link
Contributor Author

ljli commented Mar 8, 2017

For me it works, I'm not sure why it wouldn't but I can explain what happens.
This is just a setup dependency, which means there won't be any diamond style dependency conflicts, the package doesn't care with which Cabal version it was build, after the fact.
We do this in other places but the override way doesn't work here because Cabal is not an explicit dependency.
Generally user package-db entries take precedence over distribution package-db entries and newer packages versions take precedence over older. So even if there is a Cabal in the distribution (which won't be the case after #23614) the one we pass here will be selected and if there is an older one in the user package-db (there will be after #23614), it will be selected, since it is newer. So it all works out.

What isn't quite correct here, is that Cabal is added to libraryHaskellDepends it should be setupHaskellDepends. At the moment it makes no difference, but I will change it, quickly.

By user package-db I mean the one we construct and pass explicitly, not some literal user package-db.

@Profpatsch
Copy link
Member

Ah, I see! Then I suggest @peti should merge it.

@peti peti merged commit e916236 into NixOS:master Mar 14, 2017
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

5 participants