lefthook: refactor

this shouldn't create any rebuilds
This commit is contained in:
quantenzitrone
2026-02-07 09:48:47 +01:00
parent cad03d928e
commit 03934d74be
+4 -7
View File
@@ -6,17 +6,14 @@
installShellFiles,
}:
let
buildGoModule (finalAttrs: {
pname = "lefthook";
version = "2.1.0";
in
buildGoModule {
inherit pname version;
src = fetchFromGitHub {
owner = "evilmartians";
repo = "lefthook";
rev = "v${version}";
rev = "v${finalAttrs.version}";
hash = "sha256-C4DAgM/E3yu6vZU7OSE250FLmblpNvJBu1eqQUHL1eI=";
};
@@ -41,9 +38,9 @@ buildGoModule {
meta = {
description = "Fast and powerful Git hooks manager for any type of projects";
homepage = "https://github.com/evilmartians/lefthook";
changelog = "https://github.com/evilmartians/lefthook/raw/v${version}/CHANGELOG.md";
changelog = "https://github.com/evilmartians/lefthook/raw/v${finalAttrs.version}/CHANGELOG.md";
license = lib.licenses.mit;
mainProgram = "lefthook";
maintainers = [ ];
};
}
})