Tauri: Difference between revisions
Add category development |
Simplified buildInputs and added a shellHook for wayland environments |
||
| Line 14: | Line 14: | ||
nativeBuildInputs = with pkgs; [ | nativeBuildInputs = with pkgs; [ | ||
pkg-config | pkg-config | ||
wrapGAppsHook4 | |||
cargo | cargo | ||
cargo-tauri # Optional, Only needed if Tauri doesn't work through the traditional way. | cargo-tauri # Optional, Only needed if Tauri doesn't work through the traditional way. | ||
| Line 20: | Line 20: | ||
]; | ]; | ||
buildInputs = with pkgs;[ | buildInputs = with pkgs; [ | ||
librsvg | librsvg | ||
webkitgtk_4_1 | webkitgtk_4_1 | ||
]; | ]; | ||
shellHook = " | |||
export XDG_DATA_DIRS="$GSETTINGS_SCHEMAS_PATH" # Needed on Wayland to report the correct display scale | |||
"; | |||
} | } | ||