nixpkgs-suyu/pkgs/applications/networking/cluster/kpt/default.nix

28 lines
839 B
Nix
Raw Normal View History

2020-07-17 08:00:49 +02:00
{ buildGoModule, fetchFromGitHub, lib }:
buildGoModule rec {
pname = "kpt";
2021-02-11 19:01:49 +01:00
version = "0.38.0";
2020-07-17 08:00:49 +02:00
src = fetchFromGitHub {
owner = "GoogleContainerTools";
repo = pname;
rev = "v${version}";
2021-02-11 19:01:49 +01:00
sha256 = "sha256-MBZa4LdpCZnVVbjzkYpPi9/CYGqVLeYy2N/AS1PSYBE=";
2020-07-17 08:00:49 +02:00
};
2021-02-11 19:01:49 +01:00
vendorSha256 = "sha256-P0cN8aw62nPD1OlUAw1E36YxptxtPqqruZfDDG4Ag2w=";
2020-07-17 08:00:49 +02:00
2020-08-22 07:50:07 +02:00
subPackages = [ "." ];
2020-07-17 08:00:49 +02:00
2020-10-01 06:20:00 +02:00
buildFlagsArray = [ "-ldflags=-s -w -X github.com/GoogleContainerTools/kpt/run.version=${version}" ];
2020-07-17 08:00:49 +02:00
meta = with lib; {
description = "A toolkit to help you manage, manipulate, customize, and apply Kubernetes Resource configuration data files";
homepage = "https://googlecontainertools.github.io/kpt/";
license = licenses.asl20;
maintainers = with maintainers; [ mikefaille ];
platforms = platforms.linux ++ platforms.darwin;
};
}