diff --git a/pkgs/tools/misc/mods/default.nix b/pkgs/tools/misc/mods/default.nix index 83b1e7db105..22e69de3ecc 100644 --- a/pkgs/tools/misc/mods/default.nix +++ b/pkgs/tools/misc/mods/default.nix @@ -1,6 +1,9 @@ { lib , buildGoModule , fetchFromGitHub +, gitUpdater +, testers +, mods }: buildGoModule rec { @@ -18,6 +21,17 @@ buildGoModule rec { ldflags = [ "-s" "-w" "-X=main.version=${version}" ]; + passthru = { + updateScript = gitUpdater { + rev-prefix = "v"; + ignoredVersions = ".(rc|beta).*"; + }; + + tests.version = testers.testVersion { + package = mods; + }; + }; + meta = with lib; { description = "AI on the command line"; homepage = "https://github.com/charmbracelet/mods";