From 019cc3f30eb0c7446a8b2876bdfb5e6ab740ef89 Mon Sep 17 00:00:00 2001 From: Thiago Kenji Okada Date: Tue, 10 Oct 2023 14:47:22 +0100 Subject: [PATCH] checks: separate checks --- checks.nix | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) 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 ''; }