nixpkgs-suyu/pkgs/development/tools/skaffold/default.nix
Vincent Demeester 80c2d4249d skaffold: 0.16.0 -> 0.18.0 (#50922)
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
2018-11-23 14:43:10 +01:00

32 lines
973 B
Nix

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