mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-03-22 22:29:06 +01:00
checks: Refactor formatting check
This commit is contained in:
parent
54433591bf
commit
7d1a0087da
1 changed files with 4 additions and 1 deletions
|
|
@ -4,7 +4,10 @@
|
||||||
{ inputs', pkgs, ... }:
|
{ inputs', pkgs, ... }:
|
||||||
{
|
{
|
||||||
checks = {
|
checks = {
|
||||||
formatting = (inputs.treefmt.lib.evalModule pkgs "${self}/treefmt.nix").config.build.check self;
|
formatting =
|
||||||
|
"${self}/treefmt.nix"
|
||||||
|
|> inputs.treefmt.lib.evalModule pkgs
|
||||||
|
|> (formatter: formatter.config.build.check self);
|
||||||
|
|
||||||
statix = pkgs.runCommand "statix" { buildInputs = [ inputs'.statix.packages.statix ]; } ''
|
statix = pkgs.runCommand "statix" { buildInputs = [ inputs'.statix.packages.statix ]; } ''
|
||||||
statix check ${self}
|
statix check ${self}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue