2021-02-17 17:02:09 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-17 17:02:09 +00:00
|
|
|
buildGoModule rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "skaffold";
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "1.39.1";
|
2021-02-17 17:02:09 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "GoogleContainerTools";
|
|
|
|
repo = "skaffold";
|
|
|
|
rev = "v${version}";
|
2022-08-12 12:06:08 +00:00
|
|
|
sha256 = "sha256-InC4cfDQCwc6+4hPUsRitP7/uuOyBgbQjZhe3lGqlDw=";
|
2021-02-17 17:02:09 +00:00
|
|
|
};
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
vendorSha256 = "sha256-RA2KgUjYB3y6sOQdnLSZjr52VosZSaRrVU0BXZvjB1M=";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
subPackages = ["cmd/skaffold"];
|
|
|
|
|
2021-08-27 14:25:00 +00:00
|
|
|
ldflags = let t = "github.com/GoogleContainerTools/skaffold/pkg/skaffold"; in [
|
|
|
|
"-s" "-w"
|
|
|
|
"-X ${t}/version.version=v${version}"
|
|
|
|
"-X ${t}/version.gitCommit=${src.rev}"
|
|
|
|
"-X ${t}/version.buildDate=unknown"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
2021-02-17 17:02:09 +00:00
|
|
|
|
2022-01-23 02:10:13 +00:00
|
|
|
doInstallCheck = true;
|
|
|
|
installCheckPhase = ''
|
|
|
|
$out/bin/skaffold version | grep ${version} > /dev/null
|
|
|
|
'';
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
postInstall = ''
|
2021-02-17 17:02:09 +00:00
|
|
|
installShellCompletion --cmd skaffold \
|
|
|
|
--bash <($out/bin/skaffold completion bash) \
|
|
|
|
--zsh <($out/bin/skaffold completion zsh)
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://skaffold.dev/";
|
2021-02-17 17:02:09 +00:00
|
|
|
changelog = "https://github.com/GoogleContainerTools/skaffold/releases/tag/v${version}";
|
|
|
|
description = "Easy and Repeatable Kubernetes Development";
|
|
|
|
longDescription = ''
|
|
|
|
Skaffold is a command line tool that facilitates continuous development for Kubernetes applications.
|
|
|
|
You can iterate on your application source code locally then deploy to local or remote Kubernetes clusters.
|
|
|
|
Skaffold handles the workflow for building, pushing and deploying your application.
|
|
|
|
It also provides building blocks and describe customizations for a CI/CD pipeline.
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.asl20;
|
2021-12-19 01:06:50 +00:00
|
|
|
maintainers = with maintainers; [ vdemeester bryanasdev000];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|