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

Replace pre-commit with prek

Open leiserfg opened this issue 3 months ago • 5 comments

Have a look at https://github.com/j178/prek is a RiiR of pre-commit so the module does not require api changes.

leiserfg avatar Sep 04 '25 08:09 leiserfg

I'd love that! If someone can make a PR we'll test it out :)

domenkozar avatar Sep 04 '25 09:09 domenkozar

I'll give it a try after https://github.com/NixOS/nixpkgs/pull/436754 gets merged.

leiserfg avatar Sep 04 '25 10:09 leiserfg

Merged!

domenkozar avatar Sep 22 '25 12:09 domenkozar

I saw it, this week I'm far from my laptop (visiting Valencia) next week I'll try. Should I replace pre-commit fully or fallback to it if I can't find prek in nixpkgs?

leiserfg avatar Sep 22 '25 21:09 leiserfg

We should fallback until nixos stable catches up

domenkozar avatar Sep 22 '25 21:09 domenkozar