-
Notifications
You must be signed in to change notification settings - Fork 3.6k
feat(nix): preliminary desktop app flake integration #6135
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
base: dev
Are you sure you want to change the base?
Conversation
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.
Pull request overview
This PR adds preliminary Nix flake support for building the Tauri desktop application. The implementation enables building the desktop app through Nix on NixOS and macOS, though it may require additional work for proper UI rendering on other GNU/Linux distributions.
Key Changes:
- Adds
nix/desktop.nixwith a complete Rust/Tauri build pipeline including frontend compilation, sidecar integration, and proper library path handling - Integrates the desktop package into
flake.nixas a new output alongside the existing CLI package - Reformats function parameters in
nix/opencode.nixandnix/node-modules.nixfor consistency
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 8 comments.
| File | Description |
|---|---|
| nix/desktop.nix | New file implementing the desktop app build derivation with Rust compilation, Node.js frontend build, and platform-specific library linking |
| flake.nix | Adds desktop package instantiation and exposes it as a flake output while restructuring the packages section |
| nix/opencode.nix | Reformats function parameter list to multi-line format for improved readability |
| nix/node-modules.nix | Reformats function parameters and native build inputs list to multi-line format |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Addressed review notes:
|
|
wow thank u |
|
ill send to adam/brendan since they work on desktop |
Adds a preliminary Nix flake package for the Tauri desktop app.
Tested on NixOS and on macOS. On other GNU/Linux distros, it likely needs more work for the UI to render/display correctly (e.g. runtime deps / WebKitGTK setup).