test(nix): add formatting check
This commit is contained in:
parent
faac33bd56
commit
886ab40448
16
flake.nix
16
flake.nix
@ -124,6 +124,22 @@
|
||||
'';
|
||||
};
|
||||
});
|
||||
checks = forAllSystems (pkgs: {
|
||||
formatting =
|
||||
pkgs.runCommand "check-fmt"
|
||||
{
|
||||
buildInputs = with pkgs; [
|
||||
findutils
|
||||
(import ./pkgs { inherit pkgs; }).Fmt
|
||||
];
|
||||
}
|
||||
''
|
||||
set -euo pipefail
|
||||
cd "${self}"
|
||||
find . -type f | xargs Fmt
|
||||
touch $out
|
||||
'';
|
||||
});
|
||||
apps = forAllSystems (pkgs: {
|
||||
home-manager-init = {
|
||||
type = "app";
|
||||
|
Loading…
Reference in New Issue
Block a user