-
Notifications
You must be signed in to change notification settings - Fork 684
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: Added NixOS prerequisites #1801
base: v2
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for tauri-docs-starlight ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site configuration. |
Hi, thanks for contributing! Merging this may take a while because we are a bit unsure about nix and nixos right now, see tauri-apps/tauri#8588 (comment). Also, this looks quite different to the 2 templates other people contributed to the stable docs: tauri-apps/tauri#8588 (comment) and to what i've seen in tauri's github issues. I'm not saying yours is wrong, but since i don't use nix/nixos myself i'd like to hear more nix users chime in :) Lastly, is it possible to use stable rust? I'd really rather not recommend nightly in our docs. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't mind me, just blocking the merge (see above)
nativeBuildInputs = [ pkgs.pkg-config ]; | ||
buildInputs = [ | ||
(pkgs.rust-bin.fromRustupToolchain { | ||
channel = "nightly-2023-12-19"; # feel free to change the channel |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Stable channel as requested
channel = "nightly-2023-12-19"; # feel free to change the channel | |
channel = "stable"; |
pkgs.webkitgtk_4_1 | ||
pkgs.openssl | ||
pkgs.cargo-tauri | ||
pkgs.trunk |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
currently build fails because of missing libudev.pc
, which is included in systemd
pkgs.trunk | |
pkgs.trunk | |
pkgs.systemdLibs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one might actually be unrelated to Tauri itself but the project I've tested it with.
Need to confirm later
Aside from these issues LGTM |
I added a minimal
flake.nix
sample that provides a dev shell with all required packages. This might be a lot when compared to other distributions prerequisites, but I figured I'd contribute anyways since I'm running NixOS right now and I cancargo tauri dev
andcargo tauri build
using this flake.