1{
2 lib,
3 buildLua,
4 fetchFromGitHub,
5 unstableGitUpdater,
6 libnotify,
7}:
8
9buildLua {
10 pname = "mpv-notify-send";
11 version = "0-unstable-2024-07-11";
12
13 src = fetchFromGitHub {
14 owner = "Parranoh";
15 repo = "mpv-notify-send";
16 rev = "d98d9fe566b222c5b909e3905e9e201eaec34959";
17 hash = "sha256-H8WIKfQnle27eiwnz2sxC8D1EwQplY4N7Qg5+c1e/uU=";
18 };
19
20 passthru.extraWrapperArgs = [
21 "--prefix"
22 "PATH"
23 ":"
24 (lib.makeBinPath [ libnotify ])
25 ];
26
27 passthru.updateScript = unstableGitUpdater { };
28
29 meta = {
30 description = "Lua script for mpv to send notifications with notify-send";
31 homepage = "https://github.com/Parranoh/mpv-notify-send";
32 license = lib.licenses.wtfpl;
33 maintainers = with lib.maintainers; [ r3n3gad3p3arl ];
34 };
35}