about summary refs log tree commit diff
path: root/pkgs/applications/office/watson
diff options
context:
space:
mode:
authorSimon Kohlmeyer <simon.kohlmeyer@gmail.com>2022-06-06 14:58:15 +0200
committerSimon Kohlmeyer <simon.kohlmeyer@gmail.com>2022-06-09 01:32:52 +0200
commit7850afe2b4e05265afb929b2586aeb5a5280b1c6 (patch)
tree3a3cbcf8c9bfaaa696755f56fb4996abbbe8682f /pkgs/applications/office/watson
parent6edccf1278365e146915c90fb77b2ca0dd36c8ba (diff)
downloadnixlib-7850afe2b4e05265afb929b2586aeb5a5280b1c6.tar
nixlib-7850afe2b4e05265afb929b2586aeb5a5280b1c6.tar.gz
nixlib-7850afe2b4e05265afb929b2586aeb5a5280b1c6.tar.bz2
nixlib-7850afe2b4e05265afb929b2586aeb5a5280b1c6.tar.lz
nixlib-7850afe2b4e05265afb929b2586aeb5a5280b1c6.tar.xz
nixlib-7850afe2b4e05265afb929b2586aeb5a5280b1c6.tar.zst
nixlib-7850afe2b4e05265afb929b2586aeb5a5280b1c6.zip
watson: patch fixing shell completion
Diffstat (limited to 'pkgs/applications/office/watson')
-rw-r--r--pkgs/applications/office/watson/default.nix11
1 files changed, 10 insertions, 1 deletions
diff --git a/pkgs/applications/office/watson/default.nix b/pkgs/applications/office/watson/default.nix
index eb3f5496522e..a1a6fd333057 100644
--- a/pkgs/applications/office/watson/default.nix
+++ b/pkgs/applications/office/watson/default.nix
@@ -1,4 +1,4 @@
-{ lib, fetchFromGitHub, python3, installShellFiles }:
+{ lib, fetchFromGitHub, python3, installShellFiles, fetchpatch }:
 
 with python3.pkgs;
 
@@ -13,6 +13,15 @@ buildPythonApplication rec {
     sha256 = "sha256-/AASYeMkt18KPJljAjNPRYOpg/T5xuM10LJq4LrFD0g=";
   };
 
+  patches = [
+    # https://github.com/TailorDev/Watson/pull/473
+    (fetchpatch {
+      name = "fix-completion.patch";
+      url = "https://github.com/TailorDev/Watson/commit/43ad061a981eb401c161266f497e34df891a5038.patch";
+      sha256 = "sha256-v8/asP1wooHKjyy9XXB4Rtf6x+qmGDHpRoHEne/ZCxc=";
+    })
+  ];
+
   postInstall = ''
     installShellCompletion --bash --name watson watson.completion
     installShellCompletion --zsh --name _watson watson.zsh-completion