From a9bb960e5c53173de708d710ec0c948279bf98ea Mon Sep 17 00:00:00 2001 From: Stefan Haller Date: Thu, 6 Aug 2026 16:44:38 +0200 Subject: [PATCH] Use nixfmt's current package name in the flake The nixpkgs package set renamed the Nix code formatter: what used to be called nixfmt-rfc-style is now simply nixfmt, and the old name lives on only as an alias. Both names resolve to the identical program, so this doesn't change how anything gets formatted. The rename comes first because the dependency update in the next commit makes that alias start printing a deprecation warning, so doing it in this order means no commit in the history evaluates with one. --- flake.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 8d0078d16..fcc58a044 100644 --- a/flake.nix +++ b/flake.nix @@ -109,8 +109,8 @@ }; treefmt = { - programs.nixfmt.enable = pkgs.lib.meta.availableOn pkgs.stdenv.buildPlatform pkgs.nixfmt-rfc-style.compiler; - programs.nixfmt.package = pkgs.nixfmt-rfc-style; + programs.nixfmt.enable = pkgs.lib.meta.availableOn pkgs.stdenv.buildPlatform pkgs.nixfmt.compiler; + programs.nixfmt.package = pkgs.nixfmt; programs.gofmt.enable = true; };