2024-05-15 15:35:15 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildLua,
|
|
|
|
fetchFromGitHub,
|
|
|
|
fetchpatch,
|
|
|
|
unstableGitUpdater,
|
|
|
|
libnotify,
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildLua rec {
|
|
|
|
pname = "mpv-notify-send";
|
|
|
|
version = "0-unstable-2020-02-24";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "emilazy";
|
|
|
|
repo = pname;
|
|
|
|
rev = "a2bab8b2fd8e8d14faa875b5cc3a73f1276cd88a";
|
|
|
|
sha256 = "sha256-EwVkhyB87TJ3i9xJmmZMSTMUKvfbImI1S+y1vgRWbDk=";
|
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
# show title of online videos instead of url
|
|
|
|
(fetchpatch {
|
2024-06-20 14:57:18 +00:00
|
|
|
name = "6.patch"; # https://github.com/emilazy/mpv-notify-send/pull/6
|
|
|
|
url = "https://github.com/emilazy/mpv-notify-send/commit/948347e14890e15e89cd1e069beb1140e2d01dce.patch";
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-7aXQ8qeqG4yX0Uyn09xCIESnwPZsb6Frd7C49XgbpFw=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
passthru.extraWrapperArgs = [
|
|
|
|
"--prefix"
|
|
|
|
"PATH"
|
|
|
|
":"
|
|
|
|
(lib.makeBinPath libnotify)
|
|
|
|
];
|
|
|
|
|
|
|
|
passthru.updateScript = unstableGitUpdater { };
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Lua script for mpv to send notifications with notify-send";
|
2024-05-15 15:35:15 +00:00
|
|
|
homepage = "https://github.com/emilazy/mpv-notify-send";
|
|
|
|
license = licenses.wtfpl;
|
|
|
|
maintainers = with maintainers; [ r3n3gad3p3arl ];
|
|
|
|
};
|
|
|
|
}
|