Skip to content

Commit

Permalink
gh: 2.58.0 -> 2.59.0 (#349060)
Browse files Browse the repository at this point in the history
  • Loading branch information
zowoq authored Oct 17, 2024
2 parents 367c912 + 8b77143 commit e3543c8
Showing 1 changed file with 29 additions and 18 deletions.
47 changes: 29 additions & 18 deletions pkgs/applications/version-management/gh/default.nix
Original file line number Diff line number Diff line change
@@ -1,17 +1,25 @@
{ lib, fetchFromGitHub, buildGoModule, installShellFiles, stdenv, testers, gh }:
{
lib,
fetchFromGitHub,
buildGoModule,
installShellFiles,
stdenv,
testers,
gh,
}:

buildGoModule rec {
pname = "gh";
version = "2.58.0";
version = "2.59.0";

src = fetchFromGitHub {
owner = "cli";
repo = "cli";
rev = "v${version}";
hash = "sha256-KHJKE550XlGdB++jq/1kHP4o1QISbPtbt4GU9uIP3RE=";
rev = "refs/tags/v${version}";
hash = "sha256-QOc99KmcGk9b9uy1/y1FSe0zYE1q0g06k7niqtsMDmY=";
};

vendorHash = "sha256-6T9LQNzGpADLwI0pFvjBe5rqbXOEDZmjYCy4RhNqcFI=";
vendorHash = "sha256-Mje0IbvRj6pmOe8s8PX87ntPE+ZZeciLyOP6fmv7PmI=";

nativeBuildInputs = [ installShellFiles ];

Expand All @@ -21,19 +29,22 @@ buildGoModule rec {
runHook postBuild
'';

installPhase = ''
runHook preInstall
install -Dm755 bin/gh -t $out/bin
'' + lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
installManPage share/man/*/*.[1-9]
installShellCompletion --cmd gh \
--bash <($out/bin/gh completion -s bash) \
--fish <($out/bin/gh completion -s fish) \
--zsh <($out/bin/gh completion -s zsh)
'' + ''
runHook postInstall
'';
installPhase =
''
runHook preInstall
install -Dm755 bin/gh -t $out/bin
''
+ lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
installManPage share/man/*/*.[1-9]
installShellCompletion --cmd gh \
--bash <($out/bin/gh completion -s bash) \
--fish <($out/bin/gh completion -s fish) \
--zsh <($out/bin/gh completion -s zsh)
''
+ ''
runHook postInstall
'';

# most tests require network access
doCheck = false;
Expand Down

0 comments on commit e3543c8

Please sign in to comment.