urbit/sh/fmt-nix
Brendan Hay 48aa77a2fa
build: adding nix, shell, and haskell code formatters
These need to be run through the top-level nix-shell/shell.nix
2020-10-27 13:56:24 +01:00

13 lines
152 B
Bash
Executable File

#!/usr/bin/env bash
# Usage: fmt-nix
set -euo pipefail
cd "${0%/*}/.."
echo "Formatting Nix"
find . -type f -name '*.nix' \
-exec nixfmt {} \+