Try and fix gtk runtime

This commit is contained in:
Javier Feliz 2025-09-07 20:44:25 -04:00
parent 3fb7392aca
commit a24962007b
3 changed files with 8 additions and 4 deletions

2
.gitignore vendored
View File

@ -7,3 +7,5 @@ waycast_cache
waycast.toml
# Using locally to test .config, .cache, and data dir
xdg
# For when I have to test nix builds
result

View File

@ -39,6 +39,7 @@
nativeBuildInputs = with pkgs; [
pkg-config
makeWrapper
wrapGAppsHook4
];
buildInputs = with pkgs; [
@ -56,10 +57,12 @@
gtk4-layer-shell
];
# Wrap binary to ensure icon themes are available
postInstall = ''
wrapProgram $out/bin/waycast \
# wrapGAppsHook4 handles most GTK runtime setup automatically
# Just ensure icon themes are available
preFixup = ''
gappsWrapperArgs+=(
--prefix XDG_DATA_DIRS : "${pkgs.hicolor-icon-theme}/share:${pkgs.adwaita-icon-theme}/share"
)
'';
meta = with pkgs.lib; {

1
result
View File

@ -1 +0,0 @@
/nix/store/x09nhxzjwgzvslcfb8y2jy7ajwmb1kvc-waycast-0.0.1