apprise: add support for macOS desktop notifications (#478344)
This commit is contained in:
@@ -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 = [
|
||||
|
||||
Reference in New Issue
Block a user