poetry2nix/check-fmt

11 lines
231 B
Text
Raw Normal View History

2019-12-12 17:26:18 +01:00
#!/usr/bin/env nix-shell
#!nix-shell ./check-fmt.nix -i bash
2019-12-12 17:26:18 +01:00
#
# Just because the nixpkgs-fmt error message is not super readable. Used by
# CI.
if ! nixpkgs-fmt --check . ; then
echo 'run `nixpkgs-fmt .` to fix it'
exit 1
fi