diff options
author | Vincent Ambo <mail@tazj.in> | 2022-01-30T16·05+0300 |
---|---|---|
committer | tazjin <tazjin@tvl.su> | 2022-01-31T16·16+0000 |
commit | 120f0aa253b65eacda1220dd5ba9b1bcb01a4dcc (patch) | |
tree | 3f61456d5d1cb3b0821f6aaf1c6457b9bafe670f /tools/depotfmt.nix | |
parent | aa122cbae78ce97d60c0c98ba14df753d97e40b1 (diff) |
feat(depotfmt): format Nix code using nixpkgs-fmt r/3724
Change-Id: Ieffd04e1654e37500a6f6f5e4f29d09137bbc4e9 Reviewed-on: https://cl.tvl.fyi/c/depot/+/5142 Tested-by: BuildkiteCI Reviewed-by: sterni <sternenseemann@systemli.org>
Diffstat (limited to 'tools/depotfmt.nix')
-rw-r--r-- | tools/depotfmt.nix | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/depotfmt.nix b/tools/depotfmt.nix index 0be32091b7fd..2d70c3f2b9cf 100644 --- a/tools/depotfmt.nix +++ b/tools/depotfmt.nix @@ -18,6 +18,14 @@ let [formatter.tf] command = "${terraformat}" includes = [ "*.tf" ] + + [formatter.nix] + command = "${pkgs.nixpkgs-fmt}/bin/nixpkgs-fmt" + includes = [ "*.nix" ] + excludes = [ + "third_party/nix/tests/*", + "third_party/nix/src/tests/*" + ] ''; # helper tool for formatting the depot interactively |