commit 2880d2b7697cca1931374aadd442d7f4d5ff6a85
parent 80d25918e845673b1f0e3b4dd0946b60bc1b517b
Author: Vincent Demeester <vincent@sbr.pm>
Date: Fri, 1 Dec 2023 15:41:22 +0100
nix/packages: remove tkn* packages…
They are packaged elsewhere or upstream.
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Diffstat:
4 files changed, 0 insertions(+), 208 deletions(-)
diff --git a/nix/packages/default.nix b/nix/packages/default.nix
@@ -47,17 +47,6 @@ rec {
operator-tool = pkgs.callPackage ./operator-tooling { };
- # Tekton
- inherit (pkgs.callPackage ./tkn { })
- tkn_0_17
- tkn_0_18
- tkn_0_19
- tkn_0_20
- tkn_0_21
- tkn_0_22
- tkn_0_23
- tkn
- ;
manifest-tool = pkgs.callPackage ./manifest-tool { };
# Upstream
diff --git a/nix/packages/tkn/default.nix b/nix/packages/tkn/default.nix
@@ -1,75 +0,0 @@
-{ stdenv, lib, buildGoModule, fetchFromGitHub }:
-
-with lib;
-rec {
- tknGen = { version, sha256 }:
- buildGoModule rec {
- pname = "tkn";
- name = "${pname}-${version}";
-
- subPackages = [ "cmd/tkn" ];
- ldflags = [
- "-s"
- "-w"
- "-X github.com/tektoncd/cli/pkg/cmd/version.clientVersion=${version}"
- ];
- src = fetchFromGitHub {
- owner = "tektoncd";
- repo = "cli";
- rev = "v${version}";
- sha256 = "${sha256}";
- };
- vendorSha256 = null;
-
- postInstall = ''
- # manpages
- manRoot="$out/share/man"
- mkdir -p "$manRoot/man1"
- for manFile in docs/man/man1/*; do
- manName="$(basename "$manFile")" # "docker-build.1"
- gzip -c "$manFile" > "$manRoot/man1/$manName.gz"
- done
- # completions
- mkdir -p $out/share/bash-completion/completions/
- $out/bin/tkn completion bash > $out/share/bash-completion/completions/tkn
- mkdir -p $out/share/zsh/site-functions
- $out/bin/tkn completion zsh > $out/share/zsh/site-functions/_tkn
- '';
- meta = with lib; {
- homepage = https://github.com/tektoncd/cli;
- description = "A CLI for interacting with Tekton!";
- license = licenses.asl20;
- maintainers = with maintainers; [ vdemeester ];
- };
- };
-
- tkn = tkn_0_23;
- tkn_0_23 = makeOverridable tknGen {
- version = "0.23.1";
- sha256 = "sha256-fOq67Cxtb2A9Obh2o5/aFy5bYBnyFKYQDPcpxOXMy1s=";
- };
- tkn_0_22 = makeOverridable tknGen {
- version = "0.22.0";
- sha256 = "sha256-AmJN7hnYuhxYNG/qs7yv3phhffYKVaM8f7irhi9wRfA=";
- };
- tkn_0_21 = makeOverridable tknGen {
- version = "0.21.0";
- sha256 = "166jjf78crwkfzl7vd92y75x85jqlbid55ny3fhl96y456gmhrsl";
- };
- tkn_0_20 = makeOverridable tknGen {
- version = "0.20.0";
- sha256 = "125q6r90q9lz1qn3s3xa2006waxc5yyvgrswzgkczs4bv727am39";
- };
- tkn_0_19 = makeOverridable tknGen {
- version = "0.19.1";
- sha256 = "0vpwbmz8ij6kn61b0r3ayq9vqdsq8yb6scjnd6drb62b9r755qkn";
- };
- tkn_0_18 = makeOverridable tknGen {
- version = "0.18.0";
- sha256 = "1a8a82zy23lc00jnd3cklvrz6si9j84rg2rbq0cm35qladynk75x";
- };
- tkn_0_17 = makeOverridable tknGen {
- version = "0.17.2";
- sha256 = "0wqy8y19l6kay3v2danj10gw58j6l9b3616zn9w5pjbmbcwbslgd";
- };
-}
diff --git a/nix/packages/tkn/tkn-local.nix b/nix/packages/tkn/tkn-local.nix
@@ -1,58 +0,0 @@
-{ stdenv, lib, buildGoModule, fetchFromGitHub }:
-
-with lib;
-rec {
- tknLocalGen = { version, sha256 }:
- buildGoModule rec {
- pname = "tkn-local";
- name = "${pname}-${version}";
-
- subPackages = [ "cmd/tkn-local" ];
- ldflags = [
- "-s"
- "-w"
- ];
- src = fetchFromGitHub {
- owner = "vdemeester";
- repo = "buildkit-tekton";
- rev = "v${version}";
- sha256 = "${sha256}";
- };
- vendorSha256 = null;
- doCheck = false;
-
- postInstall = ''
- # manpages
- manRoot="$out/share/man"
- mkdir -p "$manRoot/man1"
- for manFile in docs/man/man1/*; do
- manName="$(basename "$manFile")" # "docker-build.1"
- gzip -c "$manFile" > "$manRoot/man1/$manName.gz"
- done
- # completions
- mkdir -p $out/share/bash-completion/completions/
- $out/bin/tkn-local completion bash > $out/share/bash-completion/completions/tkn-local
- mkdir -p $out/share/zsh/site-functions
- $out/bin/tkn-local completion zsh > $out/share/zsh/site-functions/_tkn-local
- '';
- meta = with lib; {
- homepage = https://github.com/vdemeester/buildkit-tekton;
- description = "A Tekton CLI extension for running tekton resources locally";
- license = licenses.asl20;
- maintainers = with maintainers; [ vdemeester ];
- };
- };
- tkn-local = tkn-local_0_4;
- tkn-local_0_4 = makeOverridable tknLocalGen {
- version = "0.4.0";
- sha256 = "sha256-9tWbSKqD03ngwgj7lgcnHhct03q5VJ0LeX2n81SUNS4=";
- };
- tkn-local_0_3 = makeOverridable tknLocalGen {
- version = "0.3.1";
- sha256 = "sha256-U9C3dzmM99OswxGTsBsfRwefrS8wsfGUCCY5sta46wU=";
- };
- tkn-local_0_2 = makeOverridable tknLocalGen {
- version = "0.2.0";
- sha256 = "sha256-Y4wFFdUxzveHguJfs9LQRCqAc143hwNqGx0TJv9cr44=";
- };
-}
diff --git a/nix/packages/tkn/tkn-pac.nix b/nix/packages/tkn/tkn-pac.nix
@@ -1,64 +0,0 @@
-{ stdenv, lib, buildGoModule, fetchFromGitHub }:
-
-with lib;
-rec {
- tknPacGen = { version, sha256 }:
- buildGoModule rec {
- pname = "tkn-pac";
- name = "${pname}-${version}";
-
- subPackages = [ "cmd/tkn-pac" ];
- ldflags = [
- "-s"
- "-w"
- "-X github.com/openshift-pipelines/pipelines-as-code/pkg/params/version.Version=${version}"
- ];
- src = fetchFromGitHub {
- owner = "openshift-pipelines";
- repo = "pipelines-as-code";
- rev = "${version}";
- sha256 = "${sha256}";
- };
- vendorSha256 = null;
- doCheck = false;
-
- postInstall = ''
- # manpages
- manRoot="$out/share/man"
- mkdir -p "$manRoot/man1"
- for manFile in docs/man/man1/*; do
- manName="$(basename "$manFile")" # "docker-build.1"
- gzip -c "$manFile" > "$manRoot/man1/$manName.gz"
- done
- # completions
- mkdir -p $out/share/bash-completion/completions/
- $out/bin/tkn-pac completion bash > $out/share/bash-completion/completions/tkn-pac
- mkdir -p $out/share/zsh/site-functions
- $out/bin/tkn-pac completion zsh > $out/share/zsh/site-functions/_tkn-pac
- '';
- meta = with lib; {
- homepage = https://github.com/openshift-pipelines/pipelines-as-code;
- description = "A Tekton CLI extension for managing pipelines-as-code repositories and bootstrapping";
- license = licenses.asl20;
- maintainers = with maintainers; [ vdemeester ];
- };
- };
-
- tkn-pac = tkn-pac_0_8;
- tkn-pac_0_8 = makeOverridable tknPacGen {
- version = "0.8.0";
- sha256 = "sha256-w1kqCXaygy168gsSbexnwECTDXPmHeAnmK0KIOWmWaU=";
- };
- tkn-pac_0_7 = makeOverridable tknPacGen {
- version = "0.7.1";
- sha256 = "sha256-VMlRz6cKzCBWs+UapyUKWXjF6P92nB5CIaKphz4USMU=";
- };
- tkn-pac_0_6 = makeOverridable tknPacGen {
- version = "0.6.1";
- sha256 = "sha256-H+zqV2zKrkE3ymwq3ZIYaFDtmrA921kjeT56v0XcjhI=";
- };
- tkn-pac_0_5 = makeOverridable tknPacGen {
- version = "0.5.10";
- sha256 = "sha256-/9QyJIFmFr96/Tv01Oz4rgoiFRi6z1sz/2lSbAzk/4I=";
- };
-}