about summary refs log tree commit diff
path: root/pkgs/applications/video/mpv/scripts/mpv-notify-send.nix
blob: fa148c3cde2a0964167424bcbb1cc202d102c0dd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{
  lib,
  buildLua,
  fetchFromGitHub,
  unstableGitUpdater,
  libnotify,
}:

buildLua rec {
  pname = "mpv-notify-send";
  version = "0-unstable-2024-07-11";

  src = fetchFromGitHub {
    owner = "Parranoh";
    repo = "mpv-notify-send";
    rev = "d98d9fe566b222c5b909e3905e9e201eaec34959";
    hash = "sha256-H8WIKfQnle27eiwnz2sxC8D1EwQplY4N7Qg5+c1e/uU=";
  };

  passthru.extraWrapperArgs = [
    "--prefix"
    "PATH"
    ":"
    (lib.makeBinPath [ libnotify ])
  ];

  passthru.updateScript = unstableGitUpdater { };

  meta = {
    description = "Lua script for mpv to send notifications with notify-send";
    homepage = "https://github.com/Parranoh/mpv-notify-send";
    license = lib.licenses.wtfpl;
    maintainers = with lib.maintainers; [ r3n3gad3p3arl ];
  };
}