-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathpackage.nix
More file actions
29 lines (24 loc) · 708 Bytes
/
package.nix
File metadata and controls
29 lines (24 loc) · 708 Bytes
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
{ stdenv
, libnotify
}:
stdenv.mkDerivation {
name = "mpv-notify-send";
src = builtins.filterSource
(path: type: builtins.baseNameOf path == "notify-send.lua")
./.;
patchPhase = ''
substituteInPlace notify-send.lua \
--replace '"notify-send"' '"${libnotify}/bin/notify-send"'
'';
installPhase = ''
mkdir -p $out/share/mpv/scripts
cp notify-send.lua $out/share/mpv/scripts
'';
meta = with stdenv.lib; {
homepage = "https://github.com/Parranoh/mpv-notify-send";
description = "A Lua script for mpv to send notifications with notify-send(1)";
license = licenses.wtfpl;
platforms = platforms.all;
maintainers = with maintainers; [ emily ];
};
}