procs: fix completions installation

This commit is contained in:
Mario Rodas 2021-09-04 02:00:00 -05:00 committed by Raphael Megzari
parent 957cec873f
commit 9cf254c40c

View File

@ -17,9 +17,9 @@ rustPlatform.buildRustPackage rec {
postInstall = ''
for shell in bash fish zsh; do
$out/bin/procs --completion $shell > procs.$shell
installShellCompletion procs.$shell
$out/bin/procs --completion $shell
done
installShellCompletion procs.{bash,fish} --zsh _procs
'';
buildInputs = lib.optionals stdenv.isDarwin [ Security libiconv ];