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.gi-webkit2: Fix build #91755
Conversation
Let me see if I understand what is going on here:
This means that in order to build The code in this PR is as follows: gi-javascriptcore =
# Remove these jailbreaks, when assert fails.
assert (pkgs.lib.versionOlder super.haskell-gi-base.version "0.24");
doJailbreak super.gi-javascriptcore; This means that I don't have a strong opinion for or against this, but I do have a couple concerns:
|
Yes, that is exactly right.
That is right. But my primary concern is to not have this jailbreak linger here forever.
That is a valid concern I hadn‘t thought about.
So my summary is. I agree that it might be a problem that you cannot override the assert, but I can‘t think of a situation where the assert would fail without that being intended.
I am not a big fan of the stringly typed "older" in there, but yeah, that might be a good idea. In general I think it would be great to annotate overrides in |
@GrahamcOfBorg build haskellPackages.reflex-dom |
Yeah, that's sort of the conclusion I came to as well. In the example in this PR here, whether you overrode haskell-gi-base to an older or newer version, or you overrode gi-javascriptcore to an older or newer version, I couldn't come up with a time when you would accidentally trigger the alert. (Although I do think that we should provide a separate
Ah, yeah, I completely agree. Ping @peti to see how he feels about this. |
Motivation for this change
Fixing some package builds.
I strongly believe, that all overrides in
configuration-common.nix
should have a mechanism to not go stale.That‘s why I am experimenting with an assert here.
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)