1
0
mirror of https://github.com/tboerger/nixos-config synced 2024-11-26 07:43:45 +01:00
github.com-tboerger-nixos-c.../overlays/kubectl-view-secret/default.nix

30 lines
732 B
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "kubectl-view-secret";
2024-07-17 16:05:33 +02:00
version = "0.12.0";
src = fetchFromGitHub {
owner = "elsesiy";
repo = "kubectl-view-secret";
rev = "v${version}";
2024-07-17 16:05:33 +02:00
sha256 = "sha256-5X5rOoERx6HoG3cOBpYm12anMXXDjTtHZzQOOlJeJSs=";
};
2024-07-17 16:05:33 +02:00
vendorHash = "sha256-oQvmS05nev+ypfkKAlTN+JbzPux5iAzHsojW8SxtB70=";
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 ];
};
}