nixpkgs/pkgs/development/tools/skaffold/default.nix
Vincent Demeester b0453b6b3e
skaffold: 0.26.0 -> 0.28.0
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
2019-05-02 11:36:28 +02:00

33 lines
973 B
Nix

{ lib, buildGoPackage, fetchFromGitHub }:
buildGoPackage rec {
name = "skaffold-${version}";
version = "0.28.0";
# rev is the 0.28.0 commit, mainly for skaffold version command output
rev = "2b6143bb6d185de9b9fbf2eaa981c8e7acff7339";
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 = "1j7wf2a5xmrk944nc0b9634qa9al3cln3lrij8383avylbx68prw";
};
meta = {
description = "Easy and Repeatable Kubernetes Development";
homepage = https://github.com/GoogleContainerTools/skaffold;
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ vdemeester ];
};
}