summary refs log tree commit diff
path: root/pkgs/tools/misc/ntfy
diff options
context:
space:
mode:
authorNiklas Hambüchen <mail@nh2.me>2021-08-10 16:54:29 +0200
committerNiklas Hambüchen <mail@nh2.me>2021-11-18 03:04:03 +0100
commit21b6b5a069a37981bca82683618cce43cf60f213 (patch)
tree122a340e0678ca29d3cb51bbe21a07e154941651 /pkgs/tools/misc/ntfy
parent50029ed89ce5e38f0b893689762c7ead26c2f678 (diff)
downloadnixpkgs-21b6b5a069a37981bca82683618cce43cf60f213.tar
nixpkgs-21b6b5a069a37981bca82683618cce43cf60f213.tar.gz
nixpkgs-21b6b5a069a37981bca82683618cce43cf60f213.tar.bz2
nixpkgs-21b6b5a069a37981bca82683618cce43cf60f213.tar.lz
nixpkgs-21b6b5a069a37981bca82683618cce43cf60f213.tar.xz
nixpkgs-21b6b5a069a37981bca82683618cce43cf60f213.tar.zst
nixpkgs-21b6b5a069a37981bca82683618cce43cf60f213.zip
ntfy: Patch Slack integration to work again.
See https://github.com/dschep/ntfy/pull/229
Diffstat (limited to 'pkgs/tools/misc/ntfy')
-rw-r--r--pkgs/tools/misc/ntfy/default.nix13
1 files changed, 12 insertions, 1 deletions
diff --git a/pkgs/tools/misc/ntfy/default.nix b/pkgs/tools/misc/ntfy/default.nix
index 3f85e7f01a4..54f1a058d4e 100644
--- a/pkgs/tools/misc/ntfy/default.nix
+++ b/pkgs/tools/misc/ntfy/default.nix
@@ -1,4 +1,4 @@
-{ lib, python3Packages, fetchFromGitHub }:
+{ lib, python3Packages, fetchFromGitHub, fetchpatch }:
 
 python3Packages.buildPythonApplication rec {
   pname = "ntfy";
@@ -23,6 +23,17 @@ python3Packages.buildPythonApplication rec {
     matrix-client
     dbus-python
     ntfy-webpush
+    slack-sdk
+  ];
+
+  patches = [
+    # Fix Slack integration no longer working.
+    # From https://github.com/dschep/ntfy/pull/229 - "Swap Slacker for Slack SDK"
+    (fetchpatch {
+      name = "ntfy-Swap-Slacker-for-Slack-SDK.patch";
+      url = "https://github.com/dschep/ntfy/commit/2346e7cfdca84c8f1afc7462a92145c1789deb3e.patch";
+      sha256 = "13k7jbsdx0jx7l5s8whirric76hml5bznkfcxab5xdp88q52kpk7";
+    })
   ];
 
   checkPhase = ''