This commit is contained in:
jopejoe1 2024-08-08 21:08:25 +02:00
parent 55aeca7389
commit d206479a6d
4 changed files with 16 additions and 12 deletions

View file

@ -83,7 +83,12 @@
};
outputs =
inputs@{ self, nixpkgs, treefmt-nix, ... }:
inputs@{
self,
nixpkgs,
treefmt-nix,
...
}:
let
forSystems = f: nixpkgs.lib.attrsets.genAttrs nixpkgs.lib.systems.flakeExposed (system: f system);
pkgs' = system: nixpkgs.legacyPackages.${system};
@ -101,10 +106,8 @@
pkgs = pkgs' system;
}
);
formatter = forSystems (
system: (treefmtEval system).config.build.wrapper
);
checks = forSystems ( system: {
formatter = forSystems (system: (treefmtEval system).config.build.wrapper);
checks = forSystems (system: {
formatting = (treefmtEval system).config.build.check self;
});
};