mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
nix: fix GTK icons for debug builds
Set `XDG_DATA_DIRS` in `nix develop` shell to include default Gnome icon sets and gsettings schemas. Sourced from [nixos wiki](https://nixos.wiki/wiki/Development_environment_with_nix-shell#No_GSettings_schemas_are_installed_on_the_system).
This commit is contained in:
@ -31,6 +31,8 @@
|
||||
glib,
|
||||
gtk4,
|
||||
libadwaita,
|
||||
gnome,
|
||||
hicolor-icon-theme,
|
||||
harfbuzz,
|
||||
libpng,
|
||||
libGL,
|
||||
@ -142,4 +144,10 @@ in
|
||||
# This should be set onto the rpath of the ghostty binary if you want
|
||||
# it to be "portable" across the system.
|
||||
LD_LIBRARY_PATH = lib.makeLibraryPath rpathLibs;
|
||||
|
||||
shellHook = ''
|
||||
# Minimal subset of env set by wrapGAppsHook4 for icons and global settings
|
||||
export XDG_DATA_DIRS=$XDG_DATA_DIRS:${hicolor-icon-theme}/share:${gnome.adwaita-icon-theme}/share
|
||||
export XDG_DATA_DIRS=$XDG_DATA_DIRS:$GSETTINGS_SCHEMAS_PATH # from glib setup hook
|
||||
'';
|
||||
}
|
||||
|
Reference in New Issue
Block a user