@ -13,19 +13,26 @@ buildGoModule rec {
vendorSha256 = null ;
doCheck = false ;
buildFlagsArray = [
" - l d f l a g s = "
" - s "
" - w "
" - X g i t h u b . c o m / t e k t o n c d / c l i / p k g / c m d / v e r s i o n . c l i e n t V e r s i o n = ${ version } "
] ;
nativeBuildInputs = [ installShellFiles ] ;
buildPhase = ''
make bin/tkn
'' ;
# third_party/VENDOR-LICENSE breaks build/check as go files are still included
# docs is a tool for generating docs
excludedPackages = " \\ ( t h i r d _ p a r t y \\ | c m d / d o c s \\ ) " ;
installPhase = ''
install bin/tkn - Dt $ out/bin
preCheck = ''
# Change the golden files to match our desired version
sed - i " s / d e v / ${ version } / " pkg/cmd/version/testdata/TestGetVersions- * . golden
'' ;
mkdir - p " $ o u t / s h a r e / m a n / m a n 1 "
cp docs/man/man1 /* " $ o u t / s h a r e / m a n / m a n 1 "
postInstall = ''
installManPage docs/man/man1 /*
installShellCompletion - - cmd tkn \
- - bash < ( $ out/bin/tkn completion bash ) \
@ -34,14 +41,14 @@ buildGoModule rec {
'' ;
meta = with lib ; {
description = " T h e T e k t o n P i p e l i n e s c l i p r o j e c t p r o v i d e s a C L I f o r i n t e r a c t i n g w i t h T e k t o n " ;
homepage = " h t t p s : / / t e k t o n . d e v " ;
changelog = " h t t p s : / / g i t h u b . c o m / t e k t o n c d / c l i / r e l e a s e s / t a g / v ${ version } " ;
description = " P r o v i d e s a C L I f o r i n t e r a c t i n g w i t h T e k t o n " ;
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 ;
maintainers = with maintainers ; [ jk mstrangfeld vdemeester ] ;
} ;
}