33 lines
961 B
Nix
33 lines
961 B
Nix
{ lib, buildGoPackage, fetchFromGitHub }:
|
|
|
|
buildGoPackage rec {
|
|
pname = "skaffold";
|
|
version = "1.2.0";
|
|
# rev is the 1.2.0 commit, mainly for skaffold version command output
|
|
rev = "80f82f42fe271aea1058f4a37776d52ab5a7c441";
|
|
|
|
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 = "17gdxifv3n2kcmz1pvs2ni2llq30zw6dwxgy5crs97h7hjdk29fw";
|
|
};
|
|
|
|
meta = {
|
|
description = "Easy and Repeatable Kubernetes Development";
|
|
homepage = https://github.com/GoogleContainerTools/skaffold;
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ vdemeester ];
|
|
};
|
|
}
|