Merge pull request #4371 from khaneliman/nixfmt
fix(flake): fix formatter configuration
This commit is contained in:
10
flake.nix
10
flake.nix
@ -65,7 +65,7 @@
|
|||||||
nativeBuildInputs =
|
nativeBuildInputs =
|
||||||
pkgs.waybar.nativeBuildInputs
|
pkgs.waybar.nativeBuildInputs
|
||||||
++ (with pkgs; [
|
++ (with pkgs; [
|
||||||
nixfmt-rfc-style
|
nixfmt
|
||||||
clang-tools
|
clang-tools
|
||||||
gdb
|
gdb
|
||||||
]);
|
]);
|
||||||
@ -75,8 +75,7 @@
|
|||||||
formatter = genSystems (
|
formatter = genSystems (
|
||||||
pkgs:
|
pkgs:
|
||||||
pkgs.treefmt.withConfig {
|
pkgs.treefmt.withConfig {
|
||||||
settings = [
|
settings = {
|
||||||
{
|
|
||||||
formatter = {
|
formatter = {
|
||||||
clang-format = {
|
clang-format = {
|
||||||
options = [ "-i" ];
|
options = [ "-i" ];
|
||||||
@ -90,13 +89,12 @@
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
nixfmt = {
|
nixfmt = {
|
||||||
command = lib.getExe pkgs.nixfmt-rfc-style;
|
command = lib.getExe pkgs.nixfmt;
|
||||||
includes = [ "*.nix" ];
|
includes = [ "*.nix" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
tree-root-file = ".git/index";
|
tree-root-file = ".git/index";
|
||||||
}
|
};
|
||||||
];
|
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -30,10 +30,9 @@ in
|
|||||||
# nixpkgs checks version, no need when building locally
|
# nixpkgs checks version, no need when building locally
|
||||||
nativeInstallCheckInputs = [ ];
|
nativeInstallCheckInputs = [ ];
|
||||||
|
|
||||||
buildInputs = (builtins.filter (p:
|
buildInputs =
|
||||||
p.pname != "wireplumber" &&
|
(builtins.filter (p: p.pname != "wireplumber" && p.pname != "gps") oldAttrs.buildInputs)
|
||||||
p.pname != "gps"
|
++ [
|
||||||
) oldAttrs.buildInputs) ++ [
|
|
||||||
pkgs.wireplumber
|
pkgs.wireplumber
|
||||||
pkgs.gpsd
|
pkgs.gpsd
|
||||||
];
|
];
|
||||||
|
Reference in New Issue
Block a user