13 pname = "mpv-convert-script";
14 version = "0-unstable-2015-07-02";
16 url = "https://gist.github.com/Zehkul/25ea7ae77b30af959be0";
17 rev = "f95cee43e390e843a47e8ec9d1711a12a8cd343d";
18 sha256 = "13m7l4sy2r8jv2sfrb3vvqvnim4a9ilnv28q5drlg09v298z3mck";
20 passthru.updateScript = unstableGitUpdater { };
22 patches = [ ./convert.patch ];
25 substituteInPlace convert_script.lua \
26 --replace-fail 'mkvpropedit_exe = "mkvpropedit"' \
27 'mkvpropedit_exe = "${lib.getExe' mkvtoolnix-cli "mkvpropedit"}"' \
28 --replace-fail 'mkvmerge_exe = "mkvmerge"' \
29 'mkvmerge_exe = "${lib.getExe' mkvtoolnix-cli "mkvmerge"}"' \
30 --replace-fail 'yad_exe = "yad"' \
31 'yad_exe = "${lib.getExe yad}"' \
32 --replace-fail 'notify_send_exe = "notify-send"' \
33 'notify_send_exe = "${lib.getExe libnotify}"' \
36 scriptPath = "convert_script.lua";
39 description = "Convert parts of a video while you are watching it in mpv";
40 homepage = "https://gist.github.com/Zehkul/25ea7ae77b30af959be0";
41 maintainers = [ maintainers.Profpatsch ];
43 When this script is loaded into mpv, you can hit Alt+W to mark the beginning
44 and Alt+W again to mark the end of the clip. Then a settings window opens.
46 # author was asked to add a license https://gist.github.com/Zehkul/25ea7ae77b30af959be0#gistcomment-3715700
47 license = licenses.unfree;