2018-10-19 08:11:45 +01:00
|
|
|
{ lib, buildGoPackage, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoPackage rec {
|
2019-08-26 17:52:37 +01:00
|
|
|
pname = "skaffold";
|
2019-12-03 19:09:59 +00:00
|
|
|
version = "1.0.1";
|
|
|
|
# rev is the 1.0.1 commit, mainly for skaffold version command output
|
|
|
|
rev = "934dd5ad304bef89cb3619b5b2ef53eb8cf04715";
|
2018-10-19 08:11:45 +01: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-12-03 19:09:59 +00:00
|
|
|
sha256 = "0pvidf8m6v56qa3dlqls55jcmjqb54spkx7xxynvhj3590pjw4qx";
|
2018-10-19 08:11:45 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Easy and Repeatable Kubernetes Development";
|
|
|
|
homepage = https://github.com/GoogleContainerTools/skaffold;
|
|
|
|
license = lib.licenses.asl20;
|
|
|
|
maintainers = with lib.maintainers; [ vdemeester ];
|
|
|
|
};
|
|
|
|
}
|