diff options
author | Mario Rodas <marsam@users.noreply.github.com> | 2020-05-19 04:20:00 -0500 |
---|---|---|
committer | Mario Rodas <marsam@users.noreply.github.com> | 2020-05-19 04:20:00 -0500 |
commit | d890ac8973e8147eae1773778041883d2cd5d56d (patch) | |
tree | c6aaefae610eec7127589d40058d27bd6e25175c /pkgs | |
parent | 58ba20dd90fbd48b12f66a4863f11da71870cfa8 (diff) | |
download | nixlib-d890ac8973e8147eae1773778041883d2cd5d56d.tar nixlib-d890ac8973e8147eae1773778041883d2cd5d56d.tar.gz nixlib-d890ac8973e8147eae1773778041883d2cd5d56d.tar.bz2 nixlib-d890ac8973e8147eae1773778041883d2cd5d56d.tar.lz nixlib-d890ac8973e8147eae1773778041883d2cd5d56d.tar.xz nixlib-d890ac8973e8147eae1773778041883d2cd5d56d.tar.zst nixlib-d890ac8973e8147eae1773778041883d2cd5d56d.zip |
kubie: use installShellFiles
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/tools/kubie/default.nix | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/pkgs/development/tools/kubie/default.nix b/pkgs/development/tools/kubie/default.nix index c8985fc063f1..bdb8f0ea1479 100644 --- a/pkgs/development/tools/kubie/default.nix +++ b/pkgs/development/tools/kubie/default.nix @@ -1,8 +1,6 @@ -{ stdenv, rustPlatform, fetchFromGitHub }: +{ stdenv, rustPlatform, fetchFromGitHub, installShellFiles }: -with rustPlatform; - -buildRustPackage rec { +rustPlatform.buildRustPackage rec { pname = "kubie"; version = "0.9.1"; @@ -15,17 +13,16 @@ buildRustPackage rec { cargoSha256 = "13zs2xz3s4732zxsimg7b22d9707ln4gpscznxi13cjkf5as9gbz"; - installPhase = '' - mkdir -p $out/share/bash-completion/completions - cp -v ${src}/completion/kubie.bash $out/share/bash-completion/completions/kubie + nativeBuildInputs = [ installShellFiles ]; + + postInstall = '' + installShellCompletion completion/kubie.bash ''; meta = with stdenv.lib; { - description = - "Shell independent context and namespace switcher for kubectl"; + 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; }; } |