zowoq 2023-01-04 09:00:23 +10:00
parent 39bc9634f6
commit d629799adb

View file

@ -1,17 +1,17 @@
{ lib, fetchFromGitHub, buildGoModule, installShellFiles }:
{ lib, fetchFromGitHub, buildGoModule, installShellFiles, testers, gh }:
buildGoModule rec {
pname = "gh";
version = "2.21.1";
version = "2.21.2";
src = fetchFromGitHub {
owner = "cli";
repo = "cli";
rev = "v${version}";
sha256 = "sha256-DVdbyHGBnbFkKu0h01i0d1qw5OuBYydyP7qHc6B1qs0=";
sha256 = "sha256-syd7OMBEMv9uJUDjIIqVkJ3pvuyKnD5pubG4d3TbkY8=";
};
vendorSha256 = "sha256-b4pNcOfG+W+l2cqn4ncvR47zJltKYIcE3W1GvrWEOFY=";
vendorSha256 = "sha256-m9K43Ns8j82nMkz+zkmC7HueOA6q6T4mFPQ1GSdqo24=";
nativeBuildInputs = [ installShellFiles ];
@ -42,6 +42,10 @@ buildGoModule rec {
# most tests require network access
doCheck = false;
passthru.tests.version = testers.testVersion {
package = gh;
};
meta = with lib; {
description = "GitHub CLI tool";
homepage = "https://cli.github.com/";