Tauri: Difference between revisions

Simplified buildInputs and added a shellHook for wayland environments
Mrid22 (talk | contribs)
m i added rustc as a package in the devshell, as its needed to run the dev server that tauri provides
 
(One intermediate revision by one other user not shown)
Line 18: Line 18:
     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.
     nodejs # Optional, this is for if you have a js frontend
     nodejs # Optional, this is for if you have a js frontend
    rustc # Needed for dev server (npm tauri dev)
   ];
   ];


Line 25: Line 26:
   ];
   ];


   shellHook = "
   shellHook = ''
     export XDG_DATA_DIRS="$GSETTINGS_SCHEMAS_PATH" # Needed on Wayland to report the correct display scale
     export XDG_DATA_DIRS="$GSETTINGS_SCHEMAS_PATH" # Needed on Wayland to report the correct display scale
   ";
   '';
}
}