mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
jiten: install completion files
This commit is contained in:
parent
1405e84336
commit
875a0a5a97
1 changed files with 10 additions and 1 deletions
|
@ -5,6 +5,7 @@
|
|||
bash,
|
||||
makeWrapper,
|
||||
kanjidraw,
|
||||
installShellFiles,
|
||||
pcre,
|
||||
sqlite,
|
||||
nodejs,
|
||||
|
@ -34,7 +35,10 @@ python3.pkgs.buildPythonApplication rec {
|
|||
./cookie-fix.patch
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
nativeBuildInputs = [
|
||||
makeWrapper
|
||||
installShellFiles
|
||||
];
|
||||
buildInputs = [
|
||||
pcre
|
||||
sqlite
|
||||
|
@ -66,6 +70,11 @@ python3.pkgs.buildPythonApplication rec {
|
|||
postInstall = ''
|
||||
# requires pywebview
|
||||
rm $out/bin/jiten-gui
|
||||
|
||||
installShellCompletion --cmd jiten \
|
||||
--bash <(_JITEN_COMPLETE=bash_source $out/bin/jiten) \
|
||||
--zsh <(_JITEN_COMPLETE=zsh_source $out/bin/jiten) \
|
||||
--fish <(env _JITEN_COMPLETE=fish_source $out/bin/jiten)
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue