Merge pull request #246090 from CobaltCause/engage-shell-completions

engage: install shell completions
This commit is contained in:
Samuel Dionne-Riel 2023-07-29 21:00:17 -04:00 committed by GitHub
commit 5156e4cce6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,5 @@
{ lib
, installShellFiles
, rustPlatform
, fetchgit
}:
@ -19,6 +20,22 @@ rustPlatform.buildRustPackage {
cargoHash = "sha256-+4uqC0VoBSmkS9hYC1lzWeJmK873slZT04TljHPE+Eo=";
nativeBuildInputs = [
installShellFiles
];
postInstall = "installShellCompletion --cmd ${pname} "
+ builtins.concatStringsSep
" "
(builtins.map
(shell: "--${shell} <($out/bin/${pname} self completions ${shell})")
[
"bash"
"fish"
"zsh"
]
);
meta = {
description = "A task runner with DAG-based parallelism";
homepage = "https://or.computer.surgery/charles/engage";