diff --git a/pkgs/development/python-modules/apprise/default.nix b/pkgs/development/python-modules/apprise/default.nix index d99ad0894f723..023ab340c84e7 100644 --- a/pkgs/development/python-modules/apprise/default.nix +++ b/pkgs/development/python-modules/apprise/default.nix @@ -17,6 +17,8 @@ requests, requests-oauthlib, setuptools, + stdenv, + terminal-notifier, testers, }: @@ -32,6 +34,11 @@ buildPythonPackage rec { hash = "sha256-Qga+nLVpSj0I3Y4Dk7u5s2ISrDp3acJjNiAFXnXGyu8="; }; + postPatch = lib.optionalString stdenv.hostPlatform.isDarwin '' + substituteInPlace apprise/plugins/macosx.py \ + --replace-fail "/opt/homebrew/bin/terminal-notifier" "${lib.getExe' terminal-notifier "terminal-notifier"}" + ''; + nativeBuildInputs = [ installShellFiles ]; build-system = [