cachix/git-hooks.nix

Interop with mkDerivation's checkPhase?

edrex opened this issue · 1 comments

edrex commented

Follow-up to #277 (comment).

It seems that the best place to configure a make-based project's tests is via mkDerivation's checkPhase.

It's unclear how best to interoperate between pre-commit hooks and checkPhase though. I think I'd like to have package tests run in a pre-commit hook. Maybe also flake checks. pre-commit.check.enable seems backwards IIUC. pre-commit should run flake stuff, not the other way around.

pre-commit run -a?