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

[20.09] haskellPackages.taffybar: overrides to fix build #103898

Merged
merged 1 commit into from Nov 16, 2020

Conversation

rvl
Copy link
Contributor

@rvl rvl commented Nov 15, 2020

Motivation for this change

Apply patches to make Taffybar work with haskell-gi-base 0.24. Select versions of dependencies which are compatible with haskell-gi-base 0.24 and clear their broken flag.

Resolves #63500 on the 20.09 branch.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
  • 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/)
  • Fits CONTRIBUTING.md.

@rvl rvl changed the title haskellPackages.taffybar: overrides to fix build [20.09] haskellPackages.taffybar: overrides to fix build Nov 15, 2020
pkgs/development/haskell-modules/configuration-common.nix Outdated Show resolved Hide resolved
Comment on lines 1484 to 1489
src = pkgs.fetchFromGitHub {
owner = "thestr4ng3r";
repo = "gi-cairo-render";
rev = "8727c43cdf91aeedffc9cb4c5575f56660a86399";
sha256 = "16kqh2ck0dad1l4m6q9xs5jqj9q0vgpqrzb2dc90jk8xwslmmhxd";
};
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 pull this in as a patch instead of updating the source here?

We generally prefer just adding patches, although I guess it is less of a problem on a release branch.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I tried changing it to add the patch fetched from the PR, but the patch doesn't apply cleanly. However when digging around I noticed that master branch of the taffybar/gi-cairo-render fork contains the patch, and it builds too. I hope this is OK @cdepillabout .

Copy link
Member

Choose a reason for hiding this comment

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

Hmm, I don't think I quite understand. If thestr4ng3r/gi-cairo-render is forked from taffybar/gi-cairo-render, then is there something preventing you from taking the patch from the diff between them?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

To be honest, I don't quite understand either. There are multiple PRs and forks of this package. But it turns out there is a new hackage version which will work, so I have used that.

Copy link
Member

Choose a reason for hiding this comment

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

Thanks, this looks much simpler now!

@@ -100362,7 +100362,6 @@ self: {
description = "GI friendly Binding to the Cairo library";
license = stdenv.lib.licenses.lgpl21;
hydraPlatforms = stdenv.lib.platforms.none;
Copy link
Member

Choose a reason for hiding this comment

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

Ah, sorry, I should have mentioned this before, but you'll also need to remove these hdyraPlatforms = lines, otherwise these packages won't get built by Hydra.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK done.

Select package versions to make Taffybar work with haskell-gi-base
0.24 and unset broken flags.

Resolves NixOS#63500 on the nixos-20.09 branch.
@cdepillabout
Copy link
Member

This looks good, everything builds for me and it looks like ofborg is passing.

Thanks for working through this with me!

@cdepillabout cdepillabout merged commit 1684361 into NixOS:release-20.09 Nov 16, 2020
@rvl rvl deleted the issue-63500-taffybar branch November 16, 2020 06:10
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

2 participants