summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorseth <[email protected]>2024-05-22 01:38:12 -0400
committerseth <[email protected]>2024-05-22 16:21:31 -0600
commitb531d639c33983feec48fa1c3f6f0ebe4f0ef5a1 (patch)
treed6c032fde4a924b95162b6772a6867cbe552c2db /flake.nix
parent5092d107cd85187678383a0ea7dbcfbaef539064 (diff)
flake: start using flake-checks
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix19
1 files changed, 17 insertions, 2 deletions
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 (
{