From eb972724188833b7da39004eb160b5499b535c6e Mon Sep 17 00:00:00 2001 From: Marvin Strangfeld Date: Thu, 13 Aug 2020 10:22:34 +0200 Subject: [PATCH] tektoncd-cli: init at 0.13.0 --- maintainers/maintainer-list.nix | 6 +++ .../cluster/tektoncd-cli/default.nix | 47 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 3 files changed, 55 insertions(+) create mode 100644 pkgs/applications/networking/cluster/tektoncd-cli/default.nix diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 0f6a2be4bfbc..83570c8510c3 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -5961,6 +5961,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"; diff --git a/pkgs/applications/networking/cluster/tektoncd-cli/default.nix b/pkgs/applications/networking/cluster/tektoncd-cli/default.nix new file mode 100644 index 000000000000..8c1eea64061a --- /dev/null +++ b/pkgs/applications/networking/cluster/tektoncd-cli/default.nix @@ -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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 672c7e5a3da3..44ff7dfd984f 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -23534,6 +23534,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 {};