labs/format.sh

7 lines
214 B
Bash
Raw Normal View History

2024-06-22 17:56:18 +00:00
#!/usr/bin/env nix-shell
2024-07-09 08:49:44 +00:00
#!nix-shell -i bash -I "nixpkgs=https://github.com/nixos/nixpkgs/archive/nixos-unstable.tar.gz" -p nixfmt-rfc-style
2024-06-22 17:56:18 +00:00
2024-06-22 17:58:44 +00:00
files=$(find . -name "*.nix" -type f)
nixfmt ${1:-"--verify"} ${files}