f7651f7074
There's a bug in 1.9.1 where `skaffold debug` adds a spurious `args: ""` to the deployment manifest. It was fixed in 1.10.
41 lines
1.2 KiB
Nix
41 lines
1.2 KiB
Nix
{ lib, buildGoPackage, fetchFromGitHub, installShellFiles }:
|
|
|
|
buildGoPackage rec {
|
|
pname = "skaffold";
|
|
version = "1.10.1";
|
|
# rev is the ${version} commit, mainly for skaffold version command output
|
|
rev = "931a70a6334436735bfc4ff7633232dd5fc73cc1";
|
|
|
|
goPackagePath = "github.com/GoogleContainerTools/skaffold";
|
|
subPackages = ["cmd/skaffold"];
|
|
|
|
buildFlagsArray = let t = "${goPackagePath}/pkg/skaffold"; in ''
|
|
-ldflags=
|
|
-X ${t}/version.version=v${version}
|
|
-X ${t}/version.gitCommit=${rev}
|
|
-X ${t}/version.buildDate=unknown
|
|
'';
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "GoogleContainerTools";
|
|
repo = "skaffold";
|
|
rev = "v${version}";
|
|
sha256 = "1qi4b0304jjpv5npa5yfrrfg7yv5p838qqql3sgx4f47ysyyq0as";
|
|
};
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
postInstall = ''
|
|
for shell in bash zsh; do
|
|
$out/bin/skaffold completion $shell > skaffold.$shell
|
|
installShellCompletion skaffold.$shell
|
|
done
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Easy and Repeatable Kubernetes Development";
|
|
homepage = "https://skaffold.dev/";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ vdemeester ];
|
|
};
|
|
}
|