2018-10-19 08:11:45 +01:00
|
|
|
{ lib, buildGoPackage, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoPackage rec {
|
2019-08-26 17:52:37 +01:00
|
|
|
pname = "skaffold";
|
2020-01-30 21:09:54 +00:00
|
|
|
version = "1.2.0";
|
|
|
|
# rev is the 1.2.0 commit, mainly for skaffold version command output
|
|
|
|
rev = "80f82f42fe271aea1058f4a37776d52ab5a7c441";
|
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}";
|
2020-01-30 21:09:54 +00:00
|
|
|
sha256 = "17gdxifv3n2kcmz1pvs2ni2llq30zw6dwxgy5crs97h7hjdk29fw";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|