git-hooks.nix icon indicating copy to clipboard operation
git-hooks.nix copied to clipboard

Ability to select specific versions of tooling

Open fiadliel opened this issue 5 years ago • 2 comments

Whether through passing in your own nixpkgs, sources.json, or otherwise, it would be nice to be able to influence the versions of tooling chosen, without having to fork the project.

A concrete case: haskell-language-server for VSCode uses a specific version of ormolu for formatting, and this is built-in to the server as a library, not binary (with current hls, 0.1.2.0). If we can't align ormolu with the version pre-commit-hooks uses, then the feature in HLS/VSCode cannot reasonably be used concurrently with hooks (which is a pity for usability etc.).

fiadliel avatar Jul 24 '20 12:07 fiadliel

It's possible to do that via pre-commit.tools or entry but you have to read the source to get it right.

It would be far better if we exposed package per each tool that could be overriden.

domenkozar avatar Sep 17 '20 14:09 domenkozar

Similar to #61

domenkozar avatar Oct 06 '20 18:10 domenkozar