diff options
| author | seth <[email protected]> | 2024-05-22 01:38:12 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2024-05-22 16:21:31 -0600 |
| commit | b531d639c33983feec48fa1c3f6f0ebe4f0ef5a1 (patch) | |
| tree | d6c032fde4a924b95162b6772a6867cbe552c2db /flake.nix | |
| parent | 5092d107cd85187678383a0ea7dbcfbaef539064 (diff) | |
flake: start using flake-checks
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 19 |
1 files changed, 17 insertions, 2 deletions
@@ -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 ( { |
