2020-03-07 18:55:51 +00:00
|
|
|
{ stdenv, rustPlatform, fetchFromGitHub }:
|
|
|
|
|
|
|
|
with rustPlatform;
|
|
|
|
|
|
|
|
buildRustPackage rec {
|
|
|
|
pname = "kubie";
|
2020-04-28 17:53:19 +01:00
|
|
|
version = "0.8.4";
|
2020-03-07 18:55:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
rev = "v${version}";
|
|
|
|
owner = "sbstp";
|
|
|
|
repo = "kubie";
|
2020-04-28 17:53:19 +01:00
|
|
|
sha256 = "1f82xlhhxbjadjw609kr1kdm4n69c9mqjia4b3k505wjh7cc55n0";
|
2020-03-07 18:55:51 +00:00
|
|
|
};
|
|
|
|
|
2020-04-28 17:53:19 +01:00
|
|
|
cargoSha256 = "0mish7wqwq5ynl98n6swdn5i6mg62aih5rfykbl3wx39b468n481";
|
2020-03-07 18:55:51 +00:00
|
|
|
|
2020-04-28 17:53:55 +01:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/share/bash-completion/completions
|
|
|
|
cp -v ${src}/completion/kubie.bash $out/share/bash-completion/completions/kubie
|
|
|
|
'';
|
|
|
|
|
2020-03-07 18:55:51 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description =
|
|
|
|
"Shell independent context and namespace switcher for kubectl";
|
|
|
|
homepage = "https://github.com/sbstp/kubie";
|
|
|
|
license = with licenses; [ zlib ];
|
|
|
|
maintainers = with maintainers; [ illiusdope ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|