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,
|
bash,
|
||||||
makeWrapper,
|
makeWrapper,
|
||||||
kanjidraw,
|
kanjidraw,
|
||||||
|
installShellFiles,
|
||||||
pcre,
|
pcre,
|
||||||
sqlite,
|
sqlite,
|
||||||
nodejs,
|
nodejs,
|
||||||
|
@ -34,7 +35,10 @@ python3.pkgs.buildPythonApplication rec {
|
||||||
./cookie-fix.patch
|
./cookie-fix.patch
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [ makeWrapper ];
|
nativeBuildInputs = [
|
||||||
|
makeWrapper
|
||||||
|
installShellFiles
|
||||||
|
];
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
pcre
|
pcre
|
||||||
sqlite
|
sqlite
|
||||||
|
@ -66,6 +70,11 @@ python3.pkgs.buildPythonApplication rec {
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
# requires pywebview
|
# requires pywebview
|
||||||
rm $out/bin/jiten-gui
|
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; {
|
meta = with lib; {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue