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.greenclip: unbreak #124593

Closed
wants to merge 1 commit into from

Conversation

teto
Copy link
Member

@teto teto commented May 27, 2021

Motivation for this change

adding xscrnsaver that is a new transitive dep of greenclip.

Maybe I should remove the broken status somewhere else, but maybe it will be
fixed automatically on next update ?

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Added a release notes entry if the change is major or breaking
  • Fits CONTRIBUTING.md.

xscrnsaver is a new transitive dep of greenclip
@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 May 27, 2021
@@ -275,6 +275,7 @@ self: super: {
github-rest = dontCheck super.github-rest; # test suite needs the network
gitlib-cmdline = dontCheck super.gitlib-cmdline;
GLFW-b = dontCheck super.GLFW-b; # https://github.com/bsl/GLFW-b/issues/50
greenclip = markUnbroken (addExtraLibrary super.greenclip pkgs.xlibs.libXScrnSaver);
Copy link
Member

Choose a reason for hiding this comment

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

Could you instead remove greenclip from the file pkgs/development/haskell-modules/configuration-hackage2nix/broken.yaml?

Also, do you know why this extra library is needed? If it should actually be added to the cabal file, could you create an issue upstream? Or if this is a library that cabal2nix doesn't know about, could you send a PR there?

Copy link
Member Author

Choose a reason for hiding this comment

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

this seems like a valid dependency https://github.com/erebe/greenclip/issues/110. I've submitted NixOS/cabal2nix#496 : when this last PR is merged, when can I expect that version of cabal2nix to be usable from nixpkgs ?

Copy link
Member

@maralorn maralorn May 27, 2021

Choose a reason for hiding this comment

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

Immediately after someone runs the "update-cabal2nix-unstable" maintainer script. And after a merge there are no reasons to hold of on that.

Copy link
Member Author

Choose a reason for hiding this comment

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

could I do that in this PR too ? or is it too impactful ?

Copy link
Member

Choose a reason for hiding this comment

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

I see no reason against it.

@cdepillabout
Copy link
Member

cdepillabout commented May 28, 2021

I merged in NixOS/cabal2nix#496, updated our cabal2nix-unstable version, umarked greenclip as broken in cd36dc4, and regenerated the hackage packages in 99e97c8.

@teto If you're a greenclip user and you want to keep it working, I urge you to become a maintainer for greenclip by adding yourself to

package-maintainers:
abbradar:
- Agda
bdesham:
- pinboard-notes-backup
cdepillabout:
- password
- password-instances

You'll get pinged if greenclip ever stops building on Hydra. For instance, in a message like #123682 (comment).

@teto teto deleted the fix-greenclip branch May 28, 2021 15:29
@teto
Copy link
Member Author

teto commented May 28, 2021

@cdepillabout I have a bad experience with automatic notifcations, just too much spam.
I would like to switch to wayland setup soon so I may ditch greenclip as well. Until then I mightfix issues in greenclip if noone beat me to hit. Thanks for your help solving this issue and your overall work on the haskell ecossytem.

@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/21-05-and-overriding-a-haskell-package-dependency/13421/1

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.

4 participants