2021-02-05 17:12:51 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2020-12-09 12:39:15 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "krew";
|
2021-12-06 16:07:01 +00:00
|
|
|
version = "0.4.2";
|
2020-12-09 12:39:15 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kubernetes-sigs";
|
|
|
|
repo = "krew";
|
|
|
|
rev = "v${version}";
|
2021-12-06 16:07:01 +00:00
|
|
|
sha256 = "sha256-P4b8HMkqxzYKz9OgI4pNCjR9Wakh+kIIAnUAkayzGEo=";
|
2020-12-09 12:39:15 +00:00
|
|
|
};
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
vendorSha256 = "sha256-FQQCHq9f0yY8vSsvWIR7WKq+0c+dgGEnoQmXtoN6Ep0=";
|
2020-12-09 12:39:15 +00:00
|
|
|
|
|
|
|
subPackages = [ "cmd/krew" ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-12-09 12:39:15 +00:00
|
|
|
description = "Package manager for kubectl plugins";
|
|
|
|
homepage = "https://github.com/kubernetes-sigs/krew";
|
|
|
|
maintainers = with maintainers; [ vdemeester ];
|
2021-02-05 17:12:51 +00:00
|
|
|
license = lib.licenses.asl20;
|
2020-12-09 12:39:15 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|