mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 04:02:10 +00:00
engage: install shell completions
This commit is contained in:
parent
41ebe3a503
commit
cb4c6f0515
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue