You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I include librsvg in an configuration, it will replace gdk-pixbufs with one it generates itself. If I later include webp-pixbuf-loader, these updates to gdk-pixbuf loader path were not seen.
This maybe because librsvg was not rebuilt.
Steps To Reproduce
Steps to reproduce the behavior:
include librsvg in environment.systemPackages
rebuild
add webp-pixbuf-loader to environment.systemPackages
rebuild.
Now looking at /run/current-system/sw/lib/gdk-pixbuf-2.0/2.10.0/
loaders/ contains libpixbufloader-webp.so
loaders.cache points to /nix/store/...-libsvg-.../gdk-pixbuf-2.0/2.10.0/loaders.cache
loaders.cache doesn't contain any reference to webp.
I seems that since https://github.com/NixOS/nixpkgs/blob/1ecc5c7760b6961327377f2473db2538359da358/nixos/modules/services/x11/gdk-pixbuf.nix when such extensions should be able to just add themselves to services.xserver.gdk-pixbuf.modulePackages to include themselves in the cache
In /run/current-system/sw/lib/gdk-pkgbuf-2.0/2.10.0/loaders:
loaders/libpixbufloader-svg.la: symbolic link to /nix/store/9vn32f9zhg0v5qkxvb09bkznrkdjv6lw-librsvg-2.55.1/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.la
loaders/libpixbufloader-svg.so: symbolic link to /nix/store/9vn32f9zhg0v5qkxvb09bkznrkdjv6lw-librsvg-2.55.1/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so
loaders/libpixbufloader-webp.so: symbolic link to /nix/store/p2mk8kdma27gdljjgg830b2v90g59733-webp-pixbuf-loader-0.0.7/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-webp.so
In /run/current-system/sw/lib/gdk-pkgbuf-2.0/2.10.0/loaders.cache link:
It seems /etc/set-environment sets up GDK_PIXBUF_MODULE_FILE to a properly generated /nix/store/qq618cwqfs0v81lin9l26c0pfccphw49-gdk-pixbuf-loaders.cache.
But gnome-terminal and gnome-console override the environment variable
and use /nix/store/9vn32f9zhg0v5qkxvb09bkznrkdjv6lw-librsvg-2.55.1/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache in their executables.
But if I use foot or xterm I get the proper GDK_PIXBUF_MODULE_FILE setup.
Could librsvg and all the packages that explicitlly do: wrapProgram ... --set GDK_PIXBUF_MODULE_FILE "${librsvg.out}/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache" be fixed.
I don't think what plugins to gdk-pixbuf are available is something that a package should limit. Even in a pure environment, the selection of paths should be inclusive of all the plugins added to the environment or explicitly an input to any of the packages in that environment.
Describe the bug
When I include
librsvg
in an configuration, it will replacegdk-pixbuf
s with one it generates itself. If I later includewebp-pixbuf-loader
, these updates togdk-pixbuf
loader path were not seen.This maybe because librsvg was not rebuilt.
Steps To Reproduce
Steps to reproduce the behavior:
librsvg
inenvironment.systemPackages
webp-pixbuf-loader
toenvironment.systemPackages
Now looking at
/run/current-system/sw/lib/gdk-pixbuf-2.0/2.10.0/
loaders/
containslibpixbufloader-webp.so
loaders.cache
points to/nix/store/...-libsvg-.../gdk-pixbuf-2.0/2.10.0/loaders.cache
loaders.cache
doesn't contain any reference to webp.I seems that since
https://github.com/NixOS/nixpkgs/blob/1ecc5c7760b6961327377f2473db2538359da358/nixos/modules/services/x11/gdk-pixbuf.nix
when such extensions should be able to just add themselves toservices.xserver.gdk-pixbuf.modulePackages
to include themselves in the cacheIn
/run/current-system/sw/lib/gdk-pkgbuf-2.0/2.10.0/loaders
:In
/run/current-system/sw/lib/gdk-pkgbuf-2.0/2.10.0/loaders.cache link
:Notify maintainers
Not sure how to include team.gnome.members? @GNOME
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.This is from a nix flakes rebuild using flake:nixpkgs
The text was updated successfully, but these errors were encountered: