home

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit fa7f1fbed19236b75fe90f4e92e6a8501775e77f
parent 38d4e437f6d8deb939487817eb73c4234d2dd4f9
Author: Vincent Demeester <vincent@sbr.pm>
Date:   Fri, 30 Oct 2020 15:43:11 +0100

pkgs: add oci at HEAD

Signed-off-by: Vincent Demeester <vincent@sbr.pm>

Diffstat:
Mpkgs/default.nix | 1+
Apkgs/tkn-oci/default.nix | 32++++++++++++++++++++++++++++++++
2 files changed, 33 insertions(+), 0 deletions(-)

diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -107,6 +107,7 @@ rec { tkn_0_13 ; tkn = tkn_0_13; + tkn_oci = pkgs.callPackage ./tkn-oci { }; # Upstream buildkit = pkgs.callPackage ./buildkit { }; diff --git a/pkgs/tkn-oci/default.nix b/pkgs/tkn-oci/default.nix @@ -0,0 +1,32 @@ +{ stdenv, lib, buildGoModule, fetchFromGitHub }: +let + version = "unstable-20201030"; + + buildOci = src: buildGoModule { + inherit src version; + pname = "oci"; + vendorSha256 = "0l1fi9dgj19shmsc4hc3zpnakxygz584dl8yqya6nw6cpbn9jlg7"; + }; +in +stdenv.mkDerivation rec { + pname = "tkn-oci"; + name = "${pname}-${version}"; + + src = fetchFromGitHub { + owner = "tektoncd"; + repo = "experimental"; + rev = "4956a01c6aee52e5f204913e91e2526442bda34d"; + sha256 = "1y59z30qiqbahb9fkikgrgx9gpig9gylb0wwjq1ysbdnwmqdwpxd"; + }; + installPhase = '' + mkdir -p $out/bin + cp ${buildOci "${src}/oci"}/bin/oci $out/bin/tkn-oci + ''; + + meta = with stdenv.lib; { + homepage = https://github.com/tektoncd/experimental; + description = "Experimental tool to package tekton resources in oci image"; + license = licenses.asl20; + maintainers = with maintainers; [ vdemeester ]; + }; +}