You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If your distribution isn't included above then you may want to check [Awesome Tauri on GitHub](https://github.com/tauri-apps/awesome-tauri#guides) to see if a guide has been created.
@@ -154,11 +130,11 @@ Next: [Install Rust](#rust)
154
130
155
131
### macOS
156
132
157
-
Tauri requires various system dependencies for development on MacOS. This may depend on the type of package manager you use or don't have a package manager at all.
133
+
:::note
134
+
Using Nix? we have a dedicated section on getting started on nix [here](#nixnixos)
135
+
:::
158
136
159
-
<Tabs>
160
-
<TabItem label="MacOS">
161
-
Tauri uses [Xcode](https://developer.apple.com/xcode/resources/) and various macOS and iOS development dependencies.
137
+
Tauri uses [Xcode](https://developer.apple.com/xcode/resources/) and various macOS and iOS development dependencies.
162
138
163
139
Download and install Xcode from one of the following places:
164
140
@@ -176,29 +152,8 @@ xcode-select --install
176
152
```
177
153
178
154
</details>
179
-
180
-
</TabItem>
181
-
<TabItem label="Nix">
182
-
183
-
Tauri uses [Xcode](https://developer.apple.com/xcode/resources/) and various macOS and iOS development dependencies.
184
-
185
-
The required dependencies can be installed by adding the following packages to your shell.
186
-
```nix
187
-
darwin.apple_sdk.frameworks.WebKit
188
-
darwin.apple_sdk.frameworks.AppKit
189
-
darwin.apple_sdk.frameworks.CoreServices
190
-
darwin.apple_sdk.frameworks.Foundation
191
-
darwin.apple_sdk.frameworks.Security
192
-
```
193
-
194
-
You have installed all of the required xcode dependencies.
195
-
196
-
</TabItem>
197
-
198
155
Next: [Install Rust](#rust)
199
156
200
-
</Tabs>
201
-
202
157
### Windows
203
158
204
159
Tauri uses the Microsoft C++ Build Tools for development as well as Microsoft Edge WebView2. These are both required for development on Windows.
@@ -226,6 +181,43 @@ Install WebView2 by visiting the [WebView2 Runtime download section](https://dev
Just to note flakes are experimental in nix and may change any time.
210
+
:::
211
+
212
+
Using `flake.nix`: checkout [eveeifyeve/Tauri-Flake-Templates](https://github.com/Eveeifyeve/Tauri-Flake-Templates) on github to use a community maintained nix flake.
213
+
214
+
Feel free to follow along if your using the flake template as this is the same thing
215
+
216
+
217
+
218
+
Next: [Install Rust](#rust)
219
+
220
+
229
221
## Rust
230
222
231
223
Tauri is built with [Rust](https://www.rust-lang.org) and requires it for development. Install Rust using one of following methods. You can view more installation methods at https://www.rust-lang.org/tools/install.
@@ -252,13 +244,14 @@ Visit https://www.rust-lang.org/tools/install to install `rustup`.
252
244
253
245
</TabItem>
254
246
<TabItem label="Nix/NixOS">
255
-
Add the following packages below to install Rust on nix/NixOS.
247
+
Add the following in your buildinputs from [Previous Section](#nixnixos) below to install Rust on nix/NixOS.
256
248
```nix
257
249
cargo
258
250
rustc
259
251
rustfmt
260
-
rustup # if you want to use rustup
261
252
```
253
+
254
+
262
255
</TabItem>
263
256
264
257
</Tabs>
@@ -292,11 +285,14 @@ While npm is the default package manager for Node.js, you can also use others li
292
285
293
286
</TabItem>
294
287
<TabItem label="Nix/NixOS">
295
-
To install Node.js Add the following packages below to install Node.js on nix/NixOS.
288
+
Add the following to your `buildInputs` to install Nodejs:
296
289
```nix
297
-
nodejs-slim# feel free to change the version
290
+
nodejs # feel free to change the version
298
291
npm
299
292
```
293
+
294
+
While npm is the default package manager for Node.js, you can also use others like pnpm or yarn. To install them look for that package on [nixpkgs](https://search.nixos.org/packages) and add the package above. This step is optional and only needed if you prefer using a package manager other than npm.
295
+
300
296
</TabItem>
301
297
</Tabs>
302
298
@@ -312,7 +308,7 @@ If you'd like to target your app for Android or iOS then there are a few additio
312
308
### Android
313
309
314
310
:::caution[Nix/NixOS]
315
-
Android development only supports Linux Nix/NixOS.
311
+
Android Studio only supports Linux Nix/NixOS.
316
312
If you are using Nix on darwin you could try the [homebrew route through nix-darwin](https://daiderd.com/nix-darwin/manual/index.html#opt-homebrew.brews) to install Android Studio.
Selecting "Show Package Details" in the SDK Manager enables the installation of older package versions. Only install older versions if necessary, as they may introduce compatibility issues or security risks.
352
+
/electing"Show Package Details"in the SDK Manager enables the installation of older package versions. Only install older versions if necessary, as they may introduce compatibility issues or security risks.
361
353
362
354
4. Set `ANDROID_HOME` and `NDK_HOME` environment variables.
Add the following to `buildInputs` to install the tools/Android Studio(Linux only):
393
+
```nix
394
+
android-studio # Linux only
395
+
android-tools
396
+
```
397
+
398
+
401
399
Next: [Setup for iOS](#ios) or [Create a project](/start/create-project/).
402
400
403
401
### iOS
@@ -433,13 +431,12 @@ Next: [Create a project](/start/create-project/).
433
431
If you run into any issues during installation be sure to check the [Troubleshooting Guide](/develop/debug/) or reach out on the [Tauri Discord](https://discord.com/invite/tauri).
0 commit comments