12 inherit pname version;
14 src = fetchFromGitHub {
15 owner = "evilmartians";
18 hash = "sha256-KrTQrHPDDFCo9XG/wrY9ZNFpch12nMLg5CWYddV2OfA=";
21 vendorHash = "sha256-ralnfqrP6R58Wjc/AWRf1motWZICPagZxHCkqVcwYoo=";
23 nativeBuildInputs = [ installShellFiles ];
25 ldflags = [ "-s" "-w" ];
30 installShellCompletion --cmd lefthook \
31 --bash <($out/bin/lefthook completion bash) \
32 --fish <($out/bin/lefthook completion fish) \
33 --zsh <($out/bin/lefthook completion zsh)
37 description = "Fast and powerful Git hooks manager for any type of projects";
38 homepage = "https://github.com/evilmartians/lefthook";
39 changelog = "https://github.com/evilmartians/lefthook/raw/v${version}/CHANGELOG.md";
40 license = lib.licenses.mit;
41 mainProgram = "lefthook";
42 maintainers = with lib.maintainers; [ AndersonTorres ];