Try and fix gtk runtime
This commit is contained in:
parent
3fb7392aca
commit
a24962007b
2
.gitignore
vendored
2
.gitignore
vendored
@ -7,3 +7,5 @@ waycast_cache
|
|||||||
waycast.toml
|
waycast.toml
|
||||||
# Using locally to test .config, .cache, and data dir
|
# Using locally to test .config, .cache, and data dir
|
||||||
xdg
|
xdg
|
||||||
|
# For when I have to test nix builds
|
||||||
|
result
|
||||||
|
@ -39,6 +39,7 @@
|
|||||||
nativeBuildInputs = with pkgs; [
|
nativeBuildInputs = with pkgs; [
|
||||||
pkg-config
|
pkg-config
|
||||||
makeWrapper
|
makeWrapper
|
||||||
|
wrapGAppsHook4
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = with pkgs; [
|
buildInputs = with pkgs; [
|
||||||
@ -56,10 +57,12 @@
|
|||||||
gtk4-layer-shell
|
gtk4-layer-shell
|
||||||
];
|
];
|
||||||
|
|
||||||
# Wrap binary to ensure icon themes are available
|
# wrapGAppsHook4 handles most GTK runtime setup automatically
|
||||||
postInstall = ''
|
# Just ensure icon themes are available
|
||||||
wrapProgram $out/bin/waycast \
|
preFixup = ''
|
||||||
|
gappsWrapperArgs+=(
|
||||||
--prefix XDG_DATA_DIRS : "${pkgs.hicolor-icon-theme}/share:${pkgs.adwaita-icon-theme}/share"
|
--prefix XDG_DATA_DIRS : "${pkgs.hicolor-icon-theme}/share:${pkgs.adwaita-icon-theme}/share"
|
||||||
|
)
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with pkgs.lib; {
|
meta = with pkgs.lib; {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user