lol

Merge pull request #112755 from 06kellyjac/tektoncd-cli

tektoncd-cli: cleanup

authored by

Jörg Thalheim and committed by
GitHub
5852a218 ecf06378

+18 -11
+18 -11
pkgs/applications/networking/cluster/tektoncd-cli/default.nix
··· 13 13 14 14 vendorSha256 = null; 15 15 16 - doCheck = false; 16 + buildFlagsArray = [ 17 + "-ldflags=" 18 + "-s" 19 + "-w" 20 + "-X github.com/tektoncd/cli/pkg/cmd/version.clientVersion=${version}" 21 + ]; 17 22 18 23 nativeBuildInputs = [ installShellFiles ]; 19 24 20 - buildPhase = '' 21 - make bin/tkn 25 + # third_party/VENDOR-LICENSE breaks build/check as go files are still included 26 + # docs is a tool for generating docs 27 + excludedPackages = "\\(third_party\\|cmd/docs\\)"; 28 + 29 + preCheck = '' 30 + # Change the golden files to match our desired version 31 + sed -i "s/dev/${version}/" pkg/cmd/version/testdata/TestGetVersions-*.golden 22 32 ''; 23 33 24 - installPhase = '' 25 - install bin/tkn -Dt $out/bin 26 - 27 - mkdir -p "$out/share/man/man1" 28 - cp docs/man/man1/* "$out/share/man/man1" 34 + postInstall = '' 35 + installManPage docs/man/man1/* 29 36 30 37 installShellCompletion --cmd tkn \ 31 38 --bash <($out/bin/tkn completion bash) \ ··· 34 41 ''; 35 42 36 43 meta = with lib; { 37 - description = "The Tekton Pipelines cli project provides a CLI for interacting with Tekton"; 38 44 homepage = "https://tekton.dev"; 45 + changelog = "https://github.com/tektoncd/cli/releases/tag/v${version}"; 46 + description = "Provides a CLI for interacting with Tekton"; 39 47 longDescription = '' 40 48 The Tekton Pipelines cli project provides a CLI for interacting with Tekton! 41 49 For your convenience, it is recommended that you install the Tekton CLI, tkn, together with the core component of Tekton, Tekton Pipelines. 42 50 ''; 43 51 license = licenses.asl20; 44 - maintainers = with maintainers; [ jk mstrangfeld ]; 45 - platforms = platforms.linux ++ platforms.darwin; 52 + maintainers = with maintainers; [ jk mstrangfeld vdemeester ]; 46 53 }; 47 54 }