diff options
| author | seth <[email protected]> | 2024-05-20 21:08:11 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2024-05-20 21:08:25 -0400 |
| commit | 62933d57b8740d1bdfa48f0a0efbdd8a80f6ccd6 (patch) | |
| tree | 6afea48587850f6cfd50c216174042ba1cf2e19a /flake.nix | |
| parent | b84ec810e5c2d07801388bba73abff5a2e9ed4a4 (diff) | |
nix: use flake-checks
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 25 |
1 files changed, 21 insertions, 4 deletions
@@ -1,11 +1,15 @@ { description = "getchoo's neovim config"; - inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; + inputs = { + nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; + flake-checks.url = "github:getchoo/flake-checks"; + }; outputs = { self, nixpkgs, + flake-checks, }: let systems = [ "x86_64-linux" @@ -14,10 +18,23 @@ "aarch64-darwin" ]; - forSystem = system: fn: fn nixpkgs.legacyPackages.${system}; - forAllSystems = fn: nixpkgs.lib.genAttrs systems (system: forSystem system fn); + forAllSystems = fn: nixpkgs.lib.genAttrs systems (system: fn nixpkgs.legacyPackages.${system}); in { - checks = forAllSystems (pkgs: import ./checks.nix {inherit pkgs self;}); + checks = forAllSystems (pkgs: let + flake-checks' = flake-checks.lib.mkChecks { + root = ./.; + inherit pkgs; + }; + in { + inherit + (flake-checks') + actionlint + alejandra + selene + statix + stylua + ; + }); devShells = forAllSystems (pkgs: { default = pkgs.mkShellNoCC { |
