about summary refs log tree commit diff
path: root/pkgs/applications/office
diff options
context:
space:
mode:
authorpaumr <paum@bdisk.eu>2020-04-28 08:46:48 +0200
committerpaumr <paum@bdisk.eu>2020-04-28 08:46:48 +0200
commit2d0a06377ad2fda40c62fd2f5885328ea7a54281 (patch)
tree1ef80eb206af453d4c57714a4aef8e311a974f33 /pkgs/applications/office
parent7c1859020820152c7d5292e2bec78cc1dd3e7034 (diff)
watson: added bash/zsh completions
Diffstat (limited to 'pkgs/applications/office')
-rw-r--r--pkgs/applications/office/watson/default.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/pkgs/applications/office/watson/default.nix b/pkgs/applications/office/watson/default.nix
index e18756d8d1726..52c94ce378e1f 100644
--- a/pkgs/applications/office/watson/default.nix
+++ b/pkgs/applications/office/watson/default.nix
@@ -1,3 +1,4 @@
+{ stdenv, pythonPackages, fetchpatch, installShellFiles }:
 
 with pythonPackages;
 
@@ -15,8 +16,14 @@ buildPythonApplication rec {
     pytest -vs tests
   '';
 
+  postInstall = ''
+    installShellCompletion --bash --name watson watson.completion
+    installShellCompletion --zsh --name _watson watson.zsh-completion
+  '';
+
   checkInputs = [ py pytest pytest-datafiles mock pytest-mock pytestrunner ];
   propagatedBuildInputs = [ requests click arrow ];
+  nativeBuildInputs = [ installShellFiles ];
 
   meta = with stdenv.lib; {
     homepage = "https://tailordev.github.io/Watson/";