diff --git a/pkgs/by-name/gh/ghq/package.nix b/pkgs/by-name/gh/ghq/package.nix index 8f31cc5e01d9..a096a25db3e7 100644 --- a/pkgs/by-name/gh/ghq/package.nix +++ b/pkgs/by-name/gh/ghq/package.nix @@ -1,4 +1,11 @@ -{ lib, buildGoModule, fetchFromGitHub }: +{ + lib, + buildGoModule, + fetchFromGitHub, + testers, + nix-update-script, + ghq, +}: buildGoModule rec { pname = "ghq"; @@ -24,6 +31,13 @@ buildGoModule rec { 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 = { description = "Remote repository management made easy"; homepage = "https://github.com/x-motemen/ghq";