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

webp-pixbuf-loader: Adopt by GNOME #197029

Merged
merged 7 commits into from
Oct 25, 2022
Merged

webp-pixbuf-loader: Adopt by GNOME #197029

merged 7 commits into from
Oct 25, 2022

Conversation

jtojnar
Copy link
Member

@jtojnar jtojnar commented Oct 21, 2022

Description of changes

GNOME uses this for backgrounds so let’s add GNOME team to maintainers and adopt GNOME coding style aimed at cleaner git diffs.

Also add into GNOME packages so that gnome-backgrounds 43 work.

Fixes: #196428

Things done
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • Tested, as applicable:
    • gnome-control-center displays WebP backgrounds
    • GNOME Shell displays WebP backgrounds
    • Nautilus thumbnails WebP images
    • eog can view WebP files
    • Nautilus “set background” dialogue (GNOME portal) previews WebP files
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 22.11 Release Notes (or backporting 22.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
    • (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes
  • Fits CONTRIBUTING.md.

@github-actions github-actions bot added the 6.topic: GNOME GNOME desktop environment and its underlying platform label Oct 21, 2022
GNOME uses this for backgrounds so let’s add GNOME team to maintainers
and adopt GNOME coding style aimed at cleaner git diffs:

- Format with `nixpkgs-fmt`
- Inherit `moduleDir` variable since it has the same name
- Avoid re-using `pname` for `src` in case it is overwritten
- Use conventional attribute ordering
- Have one dependency per line in inputs
- Move comments closer to what they describe
- Wrap long substitute line
- Quote bash values
Note that no other GNOME apps currently support WebP on NixOS
because we lack a usable composition method for gdk-pixbuf caches.
@github-actions github-actions bot added 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: module (update) This PR changes an existing module in `nixos/` labels Oct 21, 2022
@jtojnar jtojnar force-pushed the webp-loader branch 2 times, most recently from 1386eca to fe754d3 Compare October 21, 2022 07:55
@jtojnar jtojnar requested a review from romildo October 21, 2022 07:56
Unlike previously, we now fail loudly when a package not containing a gdk-pixbuf modules is passed.
@jtojnar jtojnar marked this pull request as draft October 21, 2022 08:07
A hack until gdk-pixbuf learns to support multiple cache files.
A hack until gdk-pixbuf learns to support multiple cache files.
A hack until gdk-pixbuf learns to support multiple cache files.
A hack until gdk-pixbuf learns to support multiple cache files.
@jtojnar jtojnar marked this pull request as ready for review October 21, 2022 08:42
@jtojnar jtojnar merged commit 361d986 into NixOS:master Oct 25, 2022
@jtojnar jtojnar deleted the webp-loader branch October 25, 2022 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.topic: GNOME GNOME desktop environment and its underlying platform 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: module (update) This PR changes an existing module in `nixos/` 10.rebuild-darwin: 1-10 10.rebuild-linux: 11-100 11.by: package-maintainer This PR was created by the maintainer of the package it changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

webp backgrounds are broken in gnome 43
1 participant