nixpkgs/pkgs/development/tools/skaffold/default.nix
Vincent Demeester 241230d051
skaffold: init at 0.16.0
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
2018-10-19 09:11:45 +02:00

33 lines
973 B
Nix

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