fix(nix): replace deprecated nixfmt-rfc-style with nixfmt#114
Merged
Conversation
nixfmt-rfc-style is now the same as pkgs.nixfmt and should be used instead. This removes the explicit package override in treefmt and updates devShells to use the standard nixfmt package. - Remove nixfmt.package override in treefmt config (defaults to nixfmt) - Replace nixfmt-rfc-style with nixfmt in devShells.default - Update nix-workflow.md documentation to reflect the change
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the Nix flake configuration to replace the deprecated nixfmt-rfc-style package with nixfmt, ensuring the project uses the current standard formatter.
Changes:
- Removed explicit package override in treefmt configuration (defaults to nixfmt now)
- Updated devShells.default to use
nixfmtinstead ofnixfmt-rfc-style - Updated documentation to reflect the package name change
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| flake.nix | Removed deprecated package override and updated development shell package reference |
| .claude/rules/nix-workflow.md | Updated example code to show nixfmt instead of nixfmt-rfc-style |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This was referenced Jan 22, 2026
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.
Summary
nixfmt.package = pkgs.nixfmt-rfc-styleoverride in treefmt config (now defaults to nixfmt)nixfmt-rfc-stylewithnixfmtin devShells.defaultTest plan
nix flake checkpasses without deprecation warningSummary by cubic
Switched from nixfmt-rfc-style to nixfmt across the flake to remove deprecation warnings and standardize formatting. Removed the treefmt nixfmt.package override (now defaults to nixfmt), updated devShells, and refreshed nix-workflow docs.
Written for commit b4823cd. Summary will update on new commits.