From b531d639c33983feec48fa1c3f6f0ebe4f0ef5a1 Mon Sep 17 00:00:00 2001 From: seth Date: Wed, 22 May 2024 01:38:12 -0400 Subject: flake: start using flake-checks --- flake.nix | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index 0e3e12c..486dd4f 100644 --- a/flake.nix +++ b/flake.nix @@ -8,11 +8,13 @@ inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; + # this can be removed with `inputs.flake-checks.follows = ""` + flake-checks.url = "github:getchoo/flake-checks"; }; outputs = { nixpkgs, - self, + flake-checks, ... }: let systems = [ @@ -24,7 +26,20 @@ forAllSystems = fn: nixpkgs.lib.genAttrs systems (sys: fn nixpkgs.legacyPackages.${sys}); in { - checks = forAllSystems (import ./checks.nix self); + checks = forAllSystems (pkgs: let + flake-checks' = flake-checks.lib.mkChecks { + root = ./.; + inherit pkgs; + }; + in { + inherit + (flake-checks') + actionlint + alejandra + deadnix + statix + ; + }); packages = forAllSystems ( { -- cgit v1.2.3