nixos-generators/checks/is-formatted.nix
2023-05-30 10:21:34 +02:00

6 lines
127 B
Nix

{pkgs ? import <nixpkgs> {}}:
pkgs.runCommand "check-format" {} ''
${pkgs.alejandra}/bin/alejandra -c ${./.}
touch $out
''