mirror of
https://github.com/tboerger/nixos-config
synced 2024-11-23 03:32:08 +01:00
30 lines
732 B
Nix
30 lines
732 B
Nix
|
{ lib, buildGoModule, fetchFromGitHub }:
|
||
|
|
||
|
buildGoModule rec {
|
||
|
pname = "kubectl-view-secret";
|
||
|
version = "0.11.0";
|
||
|
|
||
|
src = fetchFromGitHub {
|
||
|
owner = "elsesiy";
|
||
|
repo = "kubectl-view-secret";
|
||
|
rev = "v${version}";
|
||
|
sha256 = "sha256-IdbJQ3YCIPcp09/NORWGezqjbwktObN7TuQdq5uAN4A=";
|
||
|
};
|
||
|
|
||
|
vendorHash = "sha256-Q6OosaHDzq9a2Nt18LGiGJ1C2i1/BRYGaNEBeK0Ohiw=";
|
||
|
|
||
|
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 ];
|
||
|
};
|
||
|
}
|