2018-10-19 09:11:45 +02:00
|
|
|
{ lib, buildGoPackage, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
name = "skaffold-${version}";
|
2019-05-11 15:56:37 +02:00
|
|
|
version = "0.29.0";
|
|
|
|
# rev is the 0.29.0 commit, mainly for skaffold version command output
|
|
|
|
rev = "1bbf9a3f13094e58c90399a4bd7e07250e0d2da5";
|
2018-10-19 09:11:45 +02:00
|
|
|
|
|
|
|
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}";
|
2019-05-11 15:56:37 +02:00
|
|
|
sha256 = "1rf23f7cwmmsycwdyk09wsrsq20vbzg2pi44r3516qsaz7x98mf1";
|
2018-10-19 09:11:45 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Easy and Repeatable Kubernetes Development";
|
|
|
|
homepage = https://github.com/GoogleContainerTools/skaffold;
|
|
|
|
license = lib.licenses.asl20;
|
|
|
|
maintainers = with lib.maintainers; [ vdemeester ];
|
|
|
|
};
|
|
|
|
}
|