diff --git a/checks.nix b/checks.nix index 01fb542b..7f4a0f6e 100644 --- a/checks.nix +++ b/checks.nix @@ -1,14 +1,23 @@ { pkgs }: { - check-nix-files = pkgs.runCommand "check-nix-files" + nixpkgs-fmt-check = pkgs.runCommand "nixpkgs-fmt-check" { src = ./.; - nativeBuildInputs = with pkgs; [ nixpkgs-fmt statix ]; + nativeBuildInputs = with pkgs; [ nixpkgs-fmt ]; } '' touch $out cd $src nixpkgs-fmt --check . + ''; + + statix-check = pkgs.runCommand "statix-check" + { + src = ./.; + nativeBuildInputs = with pkgs; [ statix ]; + } '' + touch $out + cd $src statix check ''; }