ghq: add passthru.tests.version and updateScript (#356244)

This commit is contained in:
Aleksana
2024-11-29 17:09:55 +08:00
committed by GitHub

View File

@@ -1,4 +1,11 @@
{ lib, buildGoModule, fetchFromGitHub }: {
lib,
buildGoModule,
fetchFromGitHub,
testers,
nix-update-script,
ghq,
}:
buildGoModule rec { buildGoModule rec {
pname = "ghq"; pname = "ghq";
@@ -24,6 +31,13 @@ buildGoModule rec {
install -m 444 -D ${src}/misc/bash/_ghq $out/share/bash-completion/completions/_ghq install -m 444 -D ${src}/misc/bash/_ghq $out/share/bash-completion/completions/_ghq
''; '';
passthru = {
tests.version = testers.testVersion {
package = ghq;
};
updateScript = nix-update-script { };
};
meta = { meta = {
description = "Remote repository management made easy"; description = "Remote repository management made easy";
homepage = "https://github.com/x-motemen/ghq"; homepage = "https://github.com/x-motemen/ghq";