2024-01-30 14:00:15 +01:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "kubectl-view-secret";
|
2024-07-17 16:05:33 +02:00
|
|
|
version = "0.12.0";
|
2024-01-30 14:00:15 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "elsesiy";
|
|
|
|
repo = "kubectl-view-secret";
|
|
|
|
rev = "v${version}";
|
2024-07-17 16:05:33 +02:00
|
|
|
sha256 = "sha256-5X5rOoERx6HoG3cOBpYm12anMXXDjTtHZzQOOlJeJSs=";
|
2024-01-30 14:00:15 +01:00
|
|
|
};
|
|
|
|
|
2024-07-17 16:05:33 +02:00
|
|
|
vendorHash = "sha256-oQvmS05nev+ypfkKAlTN+JbzPux5iAzHsojW8SxtB70=";
|
2024-01-30 14:00:15 +01:00
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
subPackages = [ "cmd" ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mv $out/bin/cmd $out/bin/kubectl-view_secret
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A kubectl plugin to decode Kubernetes secrets";
|
|
|
|
homepage = "https://github.com/elsesiy/kubectl-view-secret/";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ tboerger ];
|
|
|
|
};
|
|
|
|
}
|