Open giggio opened 2 months ago
@giggio : this looks all good, the only thing is: You still need to do githooks-cli installer
since the Nix does not install any setup on your machine by default, it only puts the binaries of Githooks in your PATH, thats it.
So, having said that, you need to install one mode
of Githooks somewhere.
githooks installer ...
. Note: Its a package manager install, updates are disabled, checking for updates still works.
You are right: the installer had some troubles because I did some stupid versioning: Can you pin it to the current main
SHA its version 3.0.1
. then it should work. I am using it as well at the moment.
Maybe you can make a PR to explain better the steps in the README under Nix install...
You could make a 3.0.2 release. Sticking it to main is not a good idea.
Thats true, but no code has changed though, I will try to do this anyway.
Yes, it is good that you did. When I ran home-manager switch
with master it did not update the reference. Only when I changed it to v3.0.2
it updated.
@ Feel free to reopen it.
Hey @gabyx! I have been trying version 3.0.1 using the Nix home-manager. I am kind of new to it, but I was able to install it using nix. But now I'm left with the githooks binaries, and when I try to use them they fail.
If I try to
githooks-cli install
, it fails with:If I try to install with
githooks-cli installer --dry-run
, it fails with:So I need to know, what are the next steps after using Nix?
Here is my
flakes.nix
config:home.nix is using it just like you mentioned in the readme.