Skip to content

Commit

Permalink
gitAndTools.gh: 0.8.0 -> 0.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
zowoq committed May 26, 2020
1 parent b6a8a2b commit ad77631
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions pkgs/applications/version-management/git-and-tools/gh/default.nix
Expand Up @@ -2,25 +2,27 @@

buildGoModule rec {
pname = "gh";
version = "0.8.0";
version = "0.9.0";

src = fetchFromGitHub {
owner = "cli";
repo = "cli";
rev = "v${version}";
sha256 = "08fy3677yq52x40rab49ijhw4r25ls2807dbv9wpna6w07n7r8v7";
sha256 = "050wqjng0l42ilaiglwm1mzrrmnk0bg9icnzq9sm88axgl4xpmdy";
};

vendorSha256 = "0s99bjmsafnzhl3s2lcybxgsw1s4i1h3vh6p40gz4vsfhndidqrq";

buildFlagsArray = [
"-ldflags=-s -w -X github.com/cli/cli/command.Version=${version}"
];
nativeBuildInputs = [ installShellFiles ];

buildPhase = ''
make GH_VERSION=${version} bin/gh manpages
'';

subPackages = [ "cmd/gh" ];
installPhase = ''
install -Dm755 bin/gh -t $out/bin
installManPage share/man/*/*.[1-9]
nativeBuildInputs = [ installShellFiles ];
postInstall = ''
for shell in bash fish zsh; do
$out/bin/gh completion -s $shell > gh.$shell
installShellCompletion gh.$shell
Expand All @@ -33,4 +35,4 @@ buildGoModule rec {
license = licenses.mit;
maintainers = with maintainers; [ zowoq ];
};
}
}

0 comments on commit ad77631

Please sign in to comment.