Skip to content

Commit e99e959

Browse files
fix(flake): update hooks and formatter to use better system
1 parent ea17c88 commit e99e959

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

flake.nix

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,11 +214,13 @@
214214
inherit lib;
215215

216216
overlays = import ./overlays { inherit inputs; };
217-
formatter = forEachSystem (pkgs: treefmtEval.${pkgs.system}.config.build.wrapper);
217+
formatter = forEachSystem (
218+
pkgs: treefmtEval.${pkgs.stdenv.hostPlatform.system}.config.build.wrapper
219+
);
218220

219221
checks = forEachSystem (pkgs: {
220222
formatting = treefmtEval.${pkgs.system}.config.build.check self;
221-
git-hooks-check = inputs.git-hooks-nix.lib.${pkgs.system}.run {
223+
git-hooks-check = inputs.git-hooks-nix.lib.${pkgs.stdenv.hostPlatform.system}.run {
222224
src = ./.;
223225
imports = [
224226
(import ./git-hooks.nix { inherit pkgs; })

0 commit comments

Comments
 (0)