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.taffybar: Fix compilation with ghc882 #81436
haskellPackages.taffybar: Fix compilation with ghc882 #81436
Conversation
Ah I found: https://www.youtube.com/watch?v=qX0mgtSm360 It might be nice if this were somewhat easier to find. |
@IvanMalison Please feel free to continue to post in this thread if you have trouble fixing up any of these dependencies. |
@cdepillabout after watching that video, I feel like the process seems pretty heavyweight especially given what I am used to with nix stuff. Is all of that really necessary? is there really no simpler way to regenerate hackage-packages.nix? |
@IvanMalison In general, I don't think there is an easier way. Is there anything in particular you want to regenerate the |
Well yes I mean I've already done that manually... the thing is I want to make sure that the changes in this patch actually work and generate the right stuff. |
I'm just want to make sure that the packages are actually unbroken. |
@IvanMalison Ah, I see. In general, as long as you remove the packages from the You don't necessarily have to worry about this when you send a PR. (Although I agree it would be nice to be able to check it on your end.) |
So basically whether or not they are actually unbroken is really only checked when @peti runs the Regen? I just have a feeling that because I'm unbreaking 4 different packages and that taffybar depends on them (transitively), something is likely to go wrong in that chain. |
Ah, so what most people do in this situation is to try to rebuild them on your machine even though they are marked broken. Here's how I would go about this:
You can see from this output that Nix is going to try to build First I would try building each of these (or at least the lowest dependencies) and seeing if it succeeds. First, I'll randomly pick $ nix-build -A haskellPackages.status-notifier-item --arg config '{allowBroken = true;}'
...
/nix/store/v8adbn3dnmv78pwvvch59mkmlh4yqc5h-status-notifier-item-0.3.0.5 This builds successfully, so you can mark it as unbroken (as I think you've currently done in this PR) and move on. Next lets try $ nix-build -A haskellPackages.xdg-desktop-entry --arg config '{allowBroken = true;}'
...
/nix/store/sz96745dg79d2r6x7qzjzyjv2yb8kia1-xdg-desktop-entry-0.1.1.1 This currently builds, so you can mark it as unbroken and move on. Next lets try $ nix-build -A haskellPackages.gtk-sni-tray --arg config '{allowBroken = true;}'
...
/nix/store/8vly1zawn8ld5h5flhmm0r97dcy5drlk-gtk-sni-tray-0.1.6.0 Looks likes it builds! Mark it as unbroken and move on! Let's try $ nix-build -A haskellPackages.taffybar --arg config '{allowBroken = true;}'
...
/nix/store/cff4y9rqpmm37raibqvh34wckkpdgqa6-taffybar-3.2.2 Okay, looks like everything built. We didn't even need any overrides! |
Since you've already marked these four packages as unbroken, this PR is complete. I'll merge it in!
|
@cdepillabout I saw your post here: https://discourse.nixos.org/t/call-to-action-for-updating-haskell-packages-after-bump-to-lts-15/6071
and was inspired to try to get taffybar building, but in this case, I actually need to regenerate hackage-packages.nix to actually test if everything is working because some dependencies have changed around, and I need new versions of certain packages.
I watched the video that you linked in there from @peti but I still don't understand what the appropriate way to actually do this is. Can you help?