refactor(flake): Use my-nix-lib for building rust and devShell #5
No reviewers
Labels
No labels
automerge
bug
dependencies
duplicate
enhancement
help wanted
invalid
migrations
question
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Personal/my-cli!5
Loading…
Reference in a new issue
No description provided.
Delete branch "my-nix-lib"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Review Summary
This PR replaces the
fenixandnaerskflake inputs with a single externalmyflake input (git+https://code.martials.no/Personal/my-nix-lib), which abstracts the Rust toolchain and dev shell setup. The lock file is updated accordingly.What changed
fenix+naerskremoved;myadded. Toolchain setup replaced withmy.lib.${system}.rust.mkRustPlatform/mkDevShell.root = ./.changed tosrc = lib.cleanSource ./..fenix_2,naersk,rust-analyzer-src_2entries removed.Assessment
This is a clean, focused refactoring. The new dependency is internal to the same organization, the abstraction is reasonable, and
lib.cleanSourceis a best-practice improvement. No correctness, security, or performance issues found.Minor observations
refs/heads/mainfor themyinput (flake.lock:92). Since Nix pins byrev, this is not a reproducibility concern, but if the intent is to track a specific version, a tag would be more explicit.treefmt-nix/treefmt-nix_2appears in the lock file because the root flake and themyflake each bring their own copy. This is harmless but slightly untidy.Neither warrants blocking the change.
*🤖 Review by opencode (opencode/deepseek-v4-flash-free) — verdict: approve