gh: format
This commit is contained in:
parent
6269d56b93
commit
1e3da2d0a6
@ -1,4 +1,12 @@
|
|||||||
{ lib, fetchFromGitHub, buildGoModule, installShellFiles, stdenv, testers, gh }:
|
{
|
||||||
|
lib,
|
||||||
|
fetchFromGitHub,
|
||||||
|
buildGoModule,
|
||||||
|
installShellFiles,
|
||||||
|
stdenv,
|
||||||
|
testers,
|
||||||
|
gh,
|
||||||
|
}:
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "gh";
|
pname = "gh";
|
||||||
@ -21,19 +29,22 @@ buildGoModule rec {
|
|||||||
runHook postBuild
|
runHook postBuild
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase =
|
||||||
runHook preInstall
|
''
|
||||||
install -Dm755 bin/gh -t $out/bin
|
runHook preInstall
|
||||||
'' + lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
install -Dm755 bin/gh -t $out/bin
|
||||||
installManPage share/man/*/*.[1-9]
|
''
|
||||||
|
+ lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
|
installManPage share/man/*/*.[1-9]
|
||||||
|
|
||||||
installShellCompletion --cmd gh \
|
installShellCompletion --cmd gh \
|
||||||
--bash <($out/bin/gh completion -s bash) \
|
--bash <($out/bin/gh completion -s bash) \
|
||||||
--fish <($out/bin/gh completion -s fish) \
|
--fish <($out/bin/gh completion -s fish) \
|
||||||
--zsh <($out/bin/gh completion -s zsh)
|
--zsh <($out/bin/gh completion -s zsh)
|
||||||
'' + ''
|
''
|
||||||
runHook postInstall
|
+ ''
|
||||||
'';
|
runHook postInstall
|
||||||
|
'';
|
||||||
|
|
||||||
# most tests require network access
|
# most tests require network access
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user