feat: Add Nix flake for development environment#100
Merged
Conversation
Adds a Nix flake that provides: - Development shell with Node.js 22, build tools, and Electron dependencies - `nix run` to start the app in dev mode (auto-installs deps) - `nix run .#build` to build the application Supports both Linux and macOS (Darwin): - Linux: includes GTK, X11, Mesa, and other Electron runtime dependencies - macOS: minimal dependencies, uses native frameworks The flake handles all platform-specific Electron dependencies and sets up the environment for better-sqlite3 native module compilation. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Author
|
Note, this is not tested on Nix+OSX since I don't have one |
Greptile SummaryAdds Nix flake to provide reproducible development environment with Node.js 20, proper Electron dependencies for Linux, and convenient
Confidence Score: 5/5
Important Files Changed
Last reviewed commit: df80ece |
flake.nix
Outdated
|
|
||
| # Common dependencies for both platforms | ||
| commonDeps = with pkgs; [ | ||
| nodejs_22 |
There was a problem hiding this comment.
Uses Node.js 22 while CI workflows (.github/workflows/ci.yml, .github/workflows/release.yml) use Node.js 20. Consider aligning versions for consistency.
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a Nix flake that provides:
nix runto start the app in dev mode (auto-installs deps)nix run .#buildto build the applicationThe flake handles all Linux-specific Electron dependencies (GTK, X11, Mesa, etc.) and sets up the environment for better-sqlite3 native module compilation.