treewide: nixfmt-rfc-style -> nixfmt

Except:
- Instances in documentation, because people in older versions
can't switch to nixfmt yet due to it having pointed to nixfmt-classic
before
- In code that runs based on a CI Nixpkgs version, which is also a bit
older still
- In update script shebangs, because many of them don't pin Nixpkgs, and run
with whatever is in NIX_PATH (and it's not easy to fix this, see
https://github.com/NixOS/nixpkgs/issues/425551)

Changed files
+26 -26
ci
maintainers
scripts
auto-rebase
pkgs
applications
editors
emacs
elisp-packages
build-support
dotnet
add-nuget-deps
vm
by-name
el
elm-land
li
livekit-libwebrtc
ni
nil
nixfmt-tree
tr
treefmt
development
ruby-modules
bundler-update-script
tools
build-managers
rebar3
servers
mobilizon
tools
typesetting
tex
texlive
top-level
+1 -1
ci/default.nix
···
programs.keep-sorted.enable = true;
-
# This uses nixfmt-rfc-style underneath,
+
# This uses nixfmt underneath,
# the default formatter for Nix code.
# See https://github.com/NixOS/nixfmt
programs.nixfmt.enable = true;
+2 -2
maintainers/scripts/auto-rebase/test/default.nix
···
stdenvNoCC
gitMinimal
treefmt
-
nixfmt-rfc-style
+
nixfmt
;
in
···
nativeBuildInputs = [
gitMinimal
treefmt
-
nixfmt-rfc-style
+
nixfmt
];
patchPhase = ''
patchShebangs .
+1 -1
pkgs/applications/editors/emacs/elisp-packages/emacs2nix.nix
···
packages = [
pkgs.bash
-
pkgs.nixfmt-rfc-style
+
pkgs.nixfmt
];
EMACS2NIX = src;
+2 -2
pkgs/build-support/dotnet/add-nuget-deps/default.nix
···
lib,
replaceVarsWith,
nuget-to-nix,
-
nixfmt-rfc-style,
+
nixfmt,
nuget-to-json,
cacert,
fetchNupkg,
···
replacements = {
binPath = lib.makeBinPath [
nuget-to-nix
-
nixfmt-rfc-style
+
nixfmt
nuget-to-json
];
};
+1 -1
pkgs/build-support/vm/default.nix
···
nativeBuildInputs = [
buildPackages.perl
buildPackages.dpkg
-
buildPackages.nixfmt-rfc-style
+
buildPackages.nixfmt
];
}
''
+2 -2
pkgs/by-name/el/elm-land/package.nix
···
writeShellScript,
nix-update,
elm2nix,
-
nixfmt-rfc-style,
+
nixfmt,
}:
buildNpmPackage rec {
···
cp "$(nix-build -A "$UPDATE_NIX_ATTR_PATH".src)/projects/cli/src/codegen/elm.json" elm.json
trap 'rm -rf elm.json registry.dat &> /dev/null' EXIT
${lib.getExe elm2nix} convert > pkgs/by-name/el/elm-land/elm-srcs.nix
-
${lib.getExe nixfmt-rfc-style} pkgs/by-name/el/elm-land/elm-srcs.nix
+
${lib.getExe nixfmt} pkgs/by-name/el/elm-land/elm-srcs.nix
${lib.getExe elm2nix} snapshot
cp registry.dat pkgs/by-name/el/elm-land/registry.dat
'';
+2 -2
pkgs/by-name/li/livekit-libwebrtc/gclient2nix.nix
···
nix-prefetch-git,
nix,
coreutils,
-
nixfmt-rfc-style,
+
nixfmt,
makeWrapper,
}:
# Based on https://github.com/milahu/gclient2nix
···
nix-prefetch-git
nix
coreutils
-
nixfmt-rfc-style
+
nixfmt
];
in
buildPythonPackage {
+2 -2
pkgs/by-name/ni/nil/package.nix
···
rustPlatform,
fetchFromGitHub,
nix,
-
nixfmt-rfc-style,
+
nixfmt,
nix-update-script,
}:
···
env = {
CFG_RELEASE = version;
-
CFG_DEFAULT_FORMATTER = lib.getExe nixfmt-rfc-style;
+
CFG_DEFAULT_FORMATTER = lib.getExe nixfmt;
};
# might be related to https://github.com/NixOS/nix/issues/5884
+2 -2
pkgs/by-name/ni/nixfmt-tree/package.nix
···
lib,
runCommand,
treefmt,
-
nixfmt-rfc-style,
+
nixfmt,
nixfmt-tree,
git,
writableTmpDirAsHomeHook,
settings ? { },
runtimeInputs ? [ ],
-
nixfmtPackage ? nixfmt-rfc-style,
+
nixfmtPackage ? nixfmt,
# NOTE: `runtimePackages` is deprecated. Use `nixfmtPackage` and/or `runtimeInputs`.
runtimePackages ? [ nixfmtPackage ],
+2 -2
pkgs/by-name/tr/treefmt/tests.nix
···
runCommand,
testers,
treefmt,
-
nixfmt-rfc-style,
+
nixfmt,
}:
let
inherit (treefmt) buildConfig withConfig;
···
nixfmtExamplePackage = withConfig {
settings = nixfmtExampleConfig;
-
runtimeInputs = [ nixfmt-rfc-style ];
+
runtimeInputs = [ nixfmt ];
};
in
{
+2 -2
pkgs/development/ruby-modules/bundler-update-script/default.nix
···
coreutils,
git,
nix,
-
nixfmt-rfc-style,
+
nixfmt,
}:
attrPath:
···
coreutils
git
nix
-
nixfmt-rfc-style
+
nixfmt
]
}
set -o errexit
+2 -2
pkgs/development/tools/build-managers/rebar3/default.nix
···
git,
gnused,
nix,
-
nixfmt-rfc-style,
+
nixfmt,
rebar3-nix,
}:
···
git
gnused
nix
-
nixfmt-rfc-style
+
nixfmt
(rebar3WithPlugins { globalPlugins = [ rebar3-nix ]; })
]
}
+2 -2
pkgs/servers/mobilizon/default.nix
···
git,
cmake,
nixosTests,
-
nixfmt-rfc-style,
+
nixfmt,
mobilizon-frontend,
...
}:
···
set -eou pipefail
${lib.getExe mix2nix} '${src}/mix.lock' > pkgs/servers/mobilizon/mix.nix
-
${lib.getExe nixfmt-rfc-style} pkgs/servers/mobilizon/mix.nix
+
${lib.getExe nixfmt} pkgs/servers/mobilizon/mix.nix
'';
elixirPackage = beamPackages.elixir;
};
+2 -2
pkgs/tools/typesetting/tex/texlive/default.nix
···
makeFontsConf,
useFixedHashes ? true,
recurseIntoAttrs,
-
nixfmt-rfc-style,
+
nixfmt,
}:
let
stdenv = gcc12Stdenv;
···
tl2nix = ./tl2nix.sed;
}
''
-
xzcat "$tlpdbxz" | sed -rn -f "$tl2nix" | uniq | ${lib.getExe nixfmt-rfc-style} > "$out"
+
xzcat "$tlpdbxz" | sed -rn -f "$tl2nix" | uniq | ${lib.getExe nixfmt} > "$out"
'';
# map: name -> fixed-output hash
+1 -1
pkgs/top-level/release-haskell.nix
···
nix-script
nix-tree
nixfmt-classic
-
nixfmt-rfc-style
+
nixfmt
nota
nvfetcher
oama