1 { lib, buildGoModule, fetchFromGitHub, installShellFiles, makeWrapper }:
7 src = fetchFromGitHub {
8 owner = "GoogleContainerTools";
11 hash = "sha256-7hYxSLZxTIu3DmIV7GIdGfEJQ2rWVGkm9/cTmpugI+A=";
16 subPackages = ["cmd/skaffold"];
18 ldflags = let t = "github.com/GoogleContainerTools/skaffold/v2/pkg/skaffold"; in [
20 "-X ${t}/version.version=v${version}"
21 "-X ${t}/version.gitCommit=${src.rev}"
22 "-X ${t}/version.buildDate=unknown"
25 nativeBuildInputs = [ installShellFiles makeWrapper ];
27 doInstallCheck = true;
28 installCheckPhase = ''
29 $out/bin/skaffold version | grep ${version} > /dev/null
33 wrapProgram $out/bin/skaffold --set SKAFFOLD_UPDATE_CHECK false
35 installShellCompletion --cmd skaffold \
36 --bash <($out/bin/skaffold completion bash) \
37 --zsh <($out/bin/skaffold completion zsh)
41 homepage = "https://skaffold.dev/";
42 changelog = "https://github.com/GoogleContainerTools/skaffold/releases/tag/v${version}";
43 description = "Easy and Repeatable Kubernetes Development";
44 mainProgram = "skaffold";
46 Skaffold is a command line tool that facilitates continuous development for Kubernetes applications.
47 You can iterate on your application source code locally then deploy to local or remote Kubernetes clusters.
48 Skaffold handles the workflow for building, pushing and deploying your application.
49 It also provides building blocks and describe customizations for a CI/CD pipeline.
51 license = licenses.asl20;
52 maintainers = with maintainers; [ vdemeester bryanasdev000];