[Nix-dev] Re: pre-commit hooks

Ludovic Courtès ludo at gnu.org
Wed Aug 18 19:02:20 CEST 2010


Hi!

"Yury G. Kudryashov" <urkud+nix at ya.ru> writes:

> What do you think about adding pre-commit hook that rejects commits that 
> lead to evaluation errors?

+1

For instance:

  - nix-instantiate --strict --eval-only \
      maintainers/scripts/eval-release.nix

  - nix-env -qa '*'

  - build the manual;

  - do whatever Hydra does to evaluate the thing.

It’d be slightly CPU-intensive, though.

> What else should we check? Coding style (tabs, trailing spaces)?

Why not.

Thanks,
Ludo’.




More information about the nix-dev mailing list