7 lines
214 B
Bash
Executable file
7 lines
214 B
Bash
Executable file
#!/usr/bin/env nix-shell
|
|
#!nix-shell -i bash -I "nixpkgs=https://github.com/nixos/nixpkgs/archive/nixos-unstable.tar.gz" -p nixfmt-rfc-style
|
|
|
|
files=$(find . -name "*.nix" -type f)
|
|
|
|
nixfmt ${1:-"--verify"} ${files}
|