mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-06 04:53:27 +00:00
31 lines
824 B
Nix
31 lines
824 B
Nix
{ lib, stdenv, rustPlatform, fetchFromGitHub, installShellFiles, Security }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "kubie";
|
|
version = "0.19.3";
|
|
|
|
src = fetchFromGitHub {
|
|
rev = "v${version}";
|
|
owner = "sbstp";
|
|
repo = "kubie";
|
|
sha256 = "sha256-c4+ebl/tWPxAlgt/N5/xalZQZGSizKp/pDcgojbjy7A=";
|
|
};
|
|
|
|
cargoHash = "sha256-D3RjlYMD/UHfYxUMvZVSiRHOPmcLVGgsRVghoaMn9AM=";
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ Security ];
|
|
|
|
postInstall = ''
|
|
installShellCompletion completion/kubie.bash
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Shell independent context and namespace switcher for kubectl";
|
|
homepage = "https://github.com/sbstp/kubie";
|
|
license = with licenses; [ zlib ];
|
|
maintainers = with maintainers; [ illiusdope ];
|
|
};
|
|
}
|