2018-10-19 08:11:45 +01:00
|
|
|
{ lib, buildGoPackage, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
name = "skaffold-${version}";
|
2019-03-28 08:29:48 +00:00
|
|
|
version = "0.26.0";
|
2019-03-22 08:43:53 +00:00
|
|
|
# rev is the 0.25.0 commit, mainly for skaffold version command output
|
2019-03-28 08:29:48 +00:00
|
|
|
rev = "d88680e9ede62da65500702670ef72fc9272a06f";
|
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-03-28 08:29:48 +00:00
|
|
|
sha256 = "151x7hs1876ij5kc1xlm1m7pyff6i22ddhfvjsgwb8sjl4h1ays5";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|