nixos-generators/checks/is-formatted.nix

6 lines
127 B
Nix
Raw Normal View History

2023-05-29 11:20:56 +03:00
{pkgs ? import <nixpkgs> {}}:
pkgs.runCommand "check-format" {} ''
${pkgs.alejandra}/bin/alejandra -c ${./.}
touch $out
''