mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
docs(nix): update formatting instructions
This commit is contained in:
parent
a0b7446f58
commit
1302b7da77
@ -190,11 +190,10 @@ Modify the relevant `rev` field in `flake.lock` to what you need - you can use `
|
||||
|
||||
## Formatting
|
||||
|
||||
Use [nixpkgs-fmt](https://github.com/nix-community/nixpkgs-fmt) to format files.
|
||||
Use [alejandra](https://github.com/kamadorueda/alejandra) to format files.
|
||||
|
||||
To format every Nix file:
|
||||
```shell
|
||||
nixpkgs-fmt flake.nix nix/*.nix
|
||||
# or
|
||||
nixpkgs-fmt **/**.nix
|
||||
# From repository root
|
||||
alejandra .
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user