fix(packaging): ship the Adwaita icons with the Nix package

GTK ships only a few stock icons itself. On a NixOS session without
Adwaita installed, such as Hyprland, the Photos and Computers sidebar
entries and about twenty other icons showed as missing (#37).
adwaita-icon-theme in buildInputs puts it on the wrapper's XDG_DATA_DIRS.
This commit is contained in:
nvrl committed 2026-10-11 18:55:00 +02:00
1 parent 453c439b74
commit e402981708
1 file changed
+6
+6
View File
@@ -3,6 +3,7 @@
{ {
lib, lib,
rustPlatform, rustPlatform,
adwaita-icon-theme,
pkg-config, pkg-config,
gettext, gettext,
glib, glib,
@@ -67,6 +68,11 @@ rustPlatform.buildRustPackage {
# TLS for WebKitGTK's GIO: without it the CAPTCHA page fails with "TLS # TLS for WebKitGTK's GIO: without it the CAPTCHA page fails with "TLS
# support is not available". wrapGAppsHook4 adds it to GIO_EXTRA_MODULES. # support is not available". wrapGAppsHook4 adds it to GIO_EXTRA_MODULES.
glib-networking glib-networking
# The stock icons the app asks for, such as the Photos and Computers
# sidebar entries. GTK ships only a few itself, and a session without
# Adwaita installed showed the rest as missing. wrapGAppsHook4 adds it to
# XDG_DATA_DIRS.
adwaita-icon-theme
gtk4 gtk4
libadwaita libadwaita
webkitgtk_6_0 webkitgtk_6_0