Merge #288176: init mpvScripts.mpv-notify-send at 0-unstable-2020-02-24
This commit is contained in:
parent
18b0191d29
commit
97f83eb69d
3 changed files with 45 additions and 0 deletions
|
@ -16527,6 +16527,11 @@
|
|||
githubId = 35229674;
|
||||
name = "Armin Rothfuss";
|
||||
};
|
||||
r3n3gad3p3arl = {
|
||||
github = "r3n3gad3p3arl";
|
||||
githubId = 20760527;
|
||||
name = "Madelyn";
|
||||
};
|
||||
raboof = {
|
||||
email = "arnout@bzzt.net";
|
||||
matrix = "@raboof:matrix.org";
|
||||
|
|
|
@ -75,6 +75,7 @@ let
|
|||
modernx-zydezu = callPackage ./modernx-zydezu.nix { };
|
||||
mpris = callPackage ./mpris.nix { };
|
||||
mpv-cheatsheet = callPackage ./mpv-cheatsheet.nix { };
|
||||
mpv-notify-send = callPackage ./mpv-notify-send.nix { };
|
||||
mpv-osc-modern = callPackage ./mpv-osc-modern.nix { };
|
||||
mpv-playlistmanager = callPackage ./mpv-playlistmanager.nix { };
|
||||
mpv-slicing = callPackage ./mpv-slicing.nix { };
|
||||
|
|
39
pkgs/applications/video/mpv/scripts/mpv-notify-send.nix
Normal file
39
pkgs/applications/video/mpv/scripts/mpv-notify-send.nix
Normal file
|
@ -0,0 +1,39 @@
|
|||
{ 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 {
|
||||
url = "https://github.com/emilazy/mpv-notify-send/pull/6.patch";
|
||||
hash = "sha256-7aXQ8qeqG4yX0Uyn09xCIESnwPZsb6Frd7C49XgbpFw=";
|
||||
})
|
||||
];
|
||||
|
||||
passthru.extraWrapperArgs = [
|
||||
"--prefix" "PATH" ":" (lib.makeBinPath libnotify)
|
||||
];
|
||||
|
||||
passthru.updateScript = unstableGitUpdater { };
|
||||
|
||||
meta = with lib; {
|
||||
description = "A Lua script for mpv to send notifications with notify-send";
|
||||
homepage = "https://github.com/emilazy/mpv-notify-send";
|
||||
license = licenses.wtfpl;
|
||||
maintainers = with maintainers; [ r3n3gad3p3arl ];
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue