Skip to content

Commit

Permalink
checks: separate checks
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagokokada committed Oct 10, 2023
1 parent 8aa9bae commit 019cc3f
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions checks.nix
Original file line number Diff line number Diff line change
@@ -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
'';
}

0 comments on commit 019cc3f

Please sign in to comment.