Merge pull request #95320 from mstrangfeld/tektoncd-cli

tektoncd-cli: init at 0.13.0
This commit is contained in:
Anderson Torres 2020-10-22 12:15:38 -03:00 committed by GitHub
commit 02e4a0e65f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 55 additions and 0 deletions

View File

@ -6003,6 +6003,12 @@
githubId = 788953;
name = "Matthijs Steen";
};
mstrangfeld = {
email = "marvin@strangfeld.io";
github = "mstrangfeld";
githubId = 36842980;
name = "Marvin Strangfeld";
};
mt-caret = {
email = "mtakeda.enigsol@gmail.com";
github = "mt-caret";

View File

@ -0,0 +1,47 @@
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
buildGoModule rec {
pname = "tektoncd-cli";
version = "0.13.0";
src = fetchFromGitHub {
owner = "tektoncd";
repo = "cli";
rev = "v${version}";
sha256 = "01kcz5pj7hl2wfcqj3kcssj1c589vqqh1r4yc0agb67rm6q7xl06";
};
vendorSha256 = null;
doCheck = false;
nativeBuildInputs = [ installShellFiles ];
buildPhase = ''
make bin/tkn
'';
installPhase = ''
install bin/tkn -Dt $out/bin
mkdir -p "$out/share/man/man1"
cp docs/man/man1/* "$out/share/man/man1"
# TODO: Move to enhanced installShellCompletion when merged: PR #83630
$out/bin/tkn completion bash > tkn.bash
$out/bin/tkn completion zsh > _tkn
installShellCompletion tkn.bash --zsh _tkn
'';
meta = with lib; {
description = "The Tekton Pipelines cli project provides a CLI for interacting with Tekton";
homepage = "https://tekton.dev";
longDescription = ''
The Tekton Pipelines cli project provides a CLI for interacting with Tekton!
For your convenience, it is recommended that you install the Tekton CLI, tkn, together with the core component of Tekton, Tekton Pipelines.
'';
license = licenses.asl20;
maintainers = with maintainers; [ jk mstrangfeld ];
platforms = platforms.linux ++ platforms.darwin;
};
}

View File

@ -23627,6 +23627,8 @@ in
tdesktop = qt5.callPackage ../applications/networking/instant-messengers/telegram/tdesktop { };
tektoncd-cli = callPackage ../applications/networking/cluster/tektoncd-cli { };
telepathy-gabble = callPackage ../applications/networking/instant-messengers/telepathy/gabble { };
telepathy-haze = callPackage ../applications/networking/instant-messengers/telepathy/haze {};