mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 12:23:02 +00:00
mods: add updateScript and tests.version
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
This commit is contained in:
parent
7c6ca2791b
commit
72590183f0
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user