mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-11 04:05:40 +03:00
flake.nix: Set formatter
This enables `nix fmt`, though it won't be practically usable without
also reformatting all files, which is done in a following commit.
(cherry picked from commit 5a8296d74f
)
This commit is contained in:
parent
b01d9f50e3
commit
c7065d2ad9
2 changed files with 3 additions and 0 deletions
|
@ -52,6 +52,7 @@ let
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
shell = treefmtEval.config.build.devShell;
|
shell = treefmtEval.config.build.devShell;
|
||||||
|
pkg = treefmtEval.config.build.wrapper;
|
||||||
};
|
};
|
||||||
|
|
||||||
in
|
in
|
||||||
|
|
|
@ -135,6 +135,8 @@
|
||||||
default = import ./shell.nix { inherit system; };
|
default = import ./shell.nix { inherit system; };
|
||||||
});
|
});
|
||||||
|
|
||||||
|
formatter = forAllSystems (system: (import ./ci { inherit system; }).fmt.pkg);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
A nested structure of [packages](https://nix.dev/manual/nix/latest/glossary#package-attribute-set) and other values.
|
A nested structure of [packages](https://nix.dev/manual/nix/latest/glossary#package-attribute-set) and other values.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue