nix fmt: automatically expose the default nix formatter
This commit is contained in:
parent
d1d7485942
commit
db07347757
1 changed files with 3 additions and 1 deletions
|
|
@ -11,7 +11,9 @@ let
|
|||
convert = attr: value: value self inputs imports;
|
||||
|
||||
result = (builtins.mapAttrs convert schema.exports);
|
||||
in result // { lib = lib // (result.lib or {}); };
|
||||
in {
|
||||
formatter = builtins.mapAttrs (_: pkgs: pkgs.nixfmt-tree) inputs.nixpkgs.legacyPackages;
|
||||
} // result // { lib = lib // (result.lib or {}); };
|
||||
|
||||
flake = { imports?{}, exports?{}, base?[] }@schema'old: { ... }@inputs'old: { ... }@imports'old: { ... }@inputs'new: base: let
|
||||
schema = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue