From bbef1be3121a0a1a49405644c2af1bc55c48f2db Mon Sep 17 00:00:00 2001 From: Anthony ROUSSEL Date: Tue, 17 Sep 2024 20:49:19 +0200 Subject: [PATCH] overcommit: add passthru.tests.version, meta.mainProgram --- pkgs/by-name/ov/overcommit/package.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/by-name/ov/overcommit/package.nix b/pkgs/by-name/ov/overcommit/package.nix index 707d194c5896d..8100ba20db422 100644 --- a/pkgs/by-name/ov/overcommit/package.nix +++ b/pkgs/by-name/ov/overcommit/package.nix @@ -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