Merge pull request #113278 from mstrangfeld/skaffold-1.20.0

skaffold: 1.17.2 -> 1.20.0
This commit is contained in:
Sandro
2021-02-17 00:33:32 +01:00
committed by GitHub
+25 -17
View File
@@ -1,13 +1,21 @@
{ lib, buildGoPackage, fetchFromGitHub, installShellFiles }: { lib, buildGoModule, fetchFromGitHub, installShellFiles }:
buildGoPackage rec { buildGoModule rec {
pname = "skaffold"; pname = "skaffold";
version = "1.17.2"; version = "1.20.0";
src = fetchFromGitHub {
owner = "GoogleContainerTools";
repo = "skaffold";
rev = "v${version}";
sha256 = "080zhksznwsyi0w1ban90vgh8y1q2703h3h4fvkwg695prd9ij66";
};
vendorSha256 = "1jvrk5jhjzg0dq0zg7p4hvjwda2289cmwh0ldz3269y8g3l113x8";
goPackagePath = "github.com/GoogleContainerTools/skaffold";
subPackages = ["cmd/skaffold"]; subPackages = ["cmd/skaffold"];
buildFlagsArray = let t = "${goPackagePath}/pkg/skaffold"; in '' buildFlagsArray = let t = "github.com/GoogleContainerTools/skaffold/pkg/skaffold"; in ''
-ldflags= -ldflags=
-s -w -s -w
-X ${t}/version.version=v${version} -X ${t}/version.version=v${version}
@@ -15,24 +23,24 @@ buildGoPackage rec {
-X ${t}/version.buildDate=unknown -X ${t}/version.buildDate=unknown
''; '';
src = fetchFromGitHub {
owner = "GoogleContainerTools";
repo = "skaffold";
rev = "v${version}";
sha256 = "1sn4pmikap93kpdgcalgb3nam7zp60ck6wmynsv8dnzihrr7ycm3";
};
nativeBuildInputs = [ installShellFiles ]; nativeBuildInputs = [ installShellFiles ];
postInstall = '' postInstall = ''
for shell in bash zsh; do installShellCompletion --cmd skaffold \
$out/bin/skaffold completion $shell > skaffold.$shell --bash <($out/bin/skaffold completion bash) \
installShellCompletion skaffold.$shell --zsh <($out/bin/skaffold completion zsh)
done
''; '';
meta = with lib; { meta = with lib; {
description = "Easy and Repeatable Kubernetes Development";
homepage = "https://skaffold.dev/"; homepage = "https://skaffold.dev/";
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.
'';
license = licenses.asl20; license = licenses.asl20;
maintainers = with maintainers; [ vdemeester ]; maintainers = with maintainers; [ vdemeester ];
}; };