2021-02-16 08:44:10 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
|
2018-10-19 08:11:45 +01:00
|
|
|
|
2021-02-16 08:44:10 +00:00
|
|
|
buildGoModule rec {
|
2019-08-26 17:52:37 +01:00
|
|
|
pname = "skaffold";
|
2021-02-16 08:44:10 +00:00
|
|
|
version = "1.20.0";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "GoogleContainerTools";
|
|
|
|
repo = "skaffold";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "080zhksznwsyi0w1ban90vgh8y1q2703h3h4fvkwg695prd9ij66";
|
|
|
|
};
|
|
|
|
|
|
|
|
vendorSha256 = "1jvrk5jhjzg0dq0zg7p4hvjwda2289cmwh0ldz3269y8g3l113x8";
|
2018-10-19 08:11:45 +01:00
|
|
|
|
|
|
|
subPackages = ["cmd/skaffold"];
|
|
|
|
|
2021-02-16 08:44:10 +00:00
|
|
|
buildFlagsArray = let t = "github.com/GoogleContainerTools/skaffold/pkg/skaffold"; in ''
|
2018-10-19 08:11:45 +01:00
|
|
|
-ldflags=
|
2020-07-03 02:24:17 +01:00
|
|
|
-s -w
|
2018-10-19 08:11:45 +01:00
|
|
|
-X ${t}/version.version=v${version}
|
2020-07-03 02:24:17 +01:00
|
|
|
-X ${t}/version.gitCommit=${src.rev}
|
2018-10-19 08:11:45 +01:00
|
|
|
-X ${t}/version.buildDate=unknown
|
|
|
|
'';
|
|
|
|
|
2020-02-22 22:04:57 +00:00
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
2021-02-16 08:44:10 +00:00
|
|
|
|
2020-02-22 22:04:57 +00:00
|
|
|
postInstall = ''
|
2021-02-16 08:44:10 +00:00
|
|
|
installShellCompletion --cmd skaffold \
|
|
|
|
--bash <($out/bin/skaffold completion bash) \
|
|
|
|
--zsh <($out/bin/skaffold completion zsh)
|
2020-02-22 22:04:57 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://skaffold.dev/";
|
2021-02-16 08:44:10 +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-02-22 22:04:57 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ vdemeester ];
|
2018-10-19 08:11:45 +01:00
|
|
|
};
|
|
|
|
}
|