Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
49 lines
995 B
Nix
49 lines
995 B
Nix
{
|
|
lib,
|
|
kubectl,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
installShellFiles,
|
|
makeWrapper,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "kubie";
|
|
version = "0.26.0";
|
|
|
|
src = fetchFromGitHub {
|
|
rev = "v${version}";
|
|
owner = "sbstp";
|
|
repo = "kubie";
|
|
sha256 = "sha256-nNoH5523EuDt+dbeFgOpMkbGS6P+Hk6Ck0FmariSFRs=";
|
|
};
|
|
|
|
buildNoDefaultFeatures = true;
|
|
|
|
cargoHash = "sha256-G3bbAj3vo4dchq1AYoG4U/ST9JLiV2F4XjKCvYo48MI=";
|
|
|
|
nativeBuildInputs = [
|
|
installShellFiles
|
|
makeWrapper
|
|
];
|
|
|
|
postInstall = ''
|
|
installShellCompletion completion/kubie.{bash,fish}
|
|
|
|
wrapProgram "$out/bin/kubie" \
|
|
--prefix PATH : "${
|
|
lib.makeBinPath [
|
|
kubectl
|
|
]
|
|
}"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Shell independent context and namespace switcher for kubectl";
|
|
mainProgram = "kubie";
|
|
homepage = "https://github.com/sbstp/kubie";
|
|
license = with licenses; [ zlib ];
|
|
maintainers = with maintainers; [ illiusdope ];
|
|
};
|
|
}
|