From e4029817083aad5960854bf547de9cef67b1929b Mon Sep 17 00:00:00 2001 From: Nils Pukropp Date: Sun, 11 Oct 2026 18:55:00 +0200 Subject: [PATCH] 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. --- packaging/nix/package.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packaging/nix/package.nix b/packaging/nix/package.nix index 1c121d2..2f4e6ed 100644 --- a/packaging/nix/package.nix +++ b/packaging/nix/package.nix @@ -3,6 +3,7 @@ { lib, rustPlatform, + adwaita-icon-theme, pkg-config, gettext, glib, @@ -67,6 +68,11 @@ rustPlatform.buildRustPackage { # TLS for WebKitGTK's GIO: without it the CAPTCHA page fails with "TLS # support is not available". wrapGAppsHook4 adds it to GIO_EXTRA_MODULES. 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 libadwaita webkitgtk_6_0