diff --git a/lib/checks.nix b/lib/checks.nix index d476ecd..fcd6d7c 100644 --- a/lib/checks.nix +++ b/lib/checks.nix @@ -1,18 +1,18 @@ { pkgs, pre-commit-hooks, ... }: { pre-commit-check = pre-commit-hooks.lib.${pkgs.system}.run { - src = ./.; + src = ../.; hooks = { ci-check-formatting = { enable = true; name = "just ci: check formatting"; - entry = "${pkgs.just}/bin/just check-formatting"; + entry = "${pkgs.nix}/bin/nix develop .#ci --run '${pkgs.just}/bin/just check-formatting'"; pass_filenames = false; }; ci-linting = { enable = true; name = "just ci: lint"; - entry = "${pkgs.just}/bin/just lint"; + entry = "${pkgs.nix}/bin/nix develop .#ci --run 'just/bin/just lint'"; pass_filenames = false; }; };