diff options
author | Jörg Thalheim <Mic92@users.noreply.github.com> | 2020-04-28 11:52:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-28 11:52:37 +0100 |
commit | 8e3a29d69ecdb7258a0f4b7f96caaa9952fe1ee1 (patch) | |
tree | 3a9bc35db20474ee505fef4e87924d3b5f43de16 /pkgs/applications/office | |
parent | 4dc492db17ea0ac75dd9617053e7ce563a8b16b9 (diff) | |
parent | 2d0a06377ad2fda40c62fd2f5885328ea7a54281 (diff) |
Merge pull request #86056 from paumr/master-watson
watson: added bash/zsh completions
Diffstat (limited to 'pkgs/applications/office')
-rw-r--r-- | pkgs/applications/office/watson/default.nix | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/pkgs/applications/office/watson/default.nix b/pkgs/applications/office/watson/default.nix index 160e821008368..52c94ce378e1f 100644 --- a/pkgs/applications/office/watson/default.nix +++ b/pkgs/applications/office/watson/default.nix @@ -1,4 +1,4 @@ -{ stdenv, pythonPackages, fetchpatch }: +{ stdenv, pythonPackages, fetchpatch, installShellFiles }: with pythonPackages; @@ -14,15 +14,21 @@ buildPythonApplication rec { checkPhase = '' 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/"; description = "A wonderful CLI to track your time!"; license = licenses.mit; - maintainers = with maintainers; [ mguentner nathyong ] ; + maintainers = with maintainers; [ mguentner nathyong ]; }; } |