overcommit: add passthru.tests.version, meta.mainProgram

This commit is contained in:
Anthony ROUSSEL
2024-10-04 22:42:29 +02:00
committed by Anthony Roussel
parent 3672d8834a
commit a17698e803
+8
View File
@@ -4,6 +4,8 @@
bundlerUpdateScript,
git,
makeWrapper,
overcommit,
testers,
}:
bundlerApp {
@@ -18,13 +20,19 @@ bundlerApp {
'';
passthru = {
tests.version = testers.testVersion {
package = overcommit;
version = (import ./gemset.nix).overcommit.version;
};
updateScript = bundlerUpdateScript "overcommit";
};
meta = with lib; {
description = "Tool to manage and configure Git hooks";
homepage = "https://github.com/sds/overcommit";
changelog = "https://github.com/sds/overcommit/blob/main/CHANGELOG.md";
license = licenses.mit;
mainProgram = "overcommit";
maintainers = with maintainers; [
Br1ght0ne
anthonyroussel