Commit Graph

2 Commits

Author SHA1 Message Date
Rebecca Turner
5a01cf1084
pre-commit: use absolute path for binary in hook
This changes the generated Git hook to refer to the `pre-commit` binary
by its absolute path. This means that Git hooks created with
`nix-shell --run 'pre-commit install'` or similar will be usable outside
of the Nix shell they were created in.

I think this is the intended behavior for this package, considering that
the `postPatch` phase already includes a substitution for this variable,
otherwise unused:

    substituteInPlace pre_commit/resources/hook-tmpl \
      --subst-var-by pre-commit $out
2022-10-07 13:38:15 -04:00
Phillip Cloud
5c22c16c24 pre-commit: move out of python3packages 2021-12-09 16:13:49 -08:00