···1213 patches = [ ./convert.patch ];
1415- postPatch =
16- let
17- t = k: v: '' 'local ${k} = "${v}"' '';
18- subs = var: orig: repl: "--replace " + t var orig + t var repl;
19- in ''
20- substituteInPlace convert_script.lua \
21- ${subs "NOTIFY_CMD" "notify-send" "${libnotify}/bin/notify-send"} \
22- ${subs "YAD_CMD" "yad" "${yad}/bin/yad"} \
23- ${subs "MKVMERGE_CMD" "mkvmerge" "${mkvtoolnix-cli}/bin/mkvmerge"}
0024 '';
2526 dontBuild = true;
···38 When this script is loaded into mpv, you can hit Alt+W to mark the beginning
39 and Alt+W again to mark the end of the clip. Then a settings window opens.
40 '';
041 license = licenses.unfree;
42- # script crashes mpv. See https://github.com/NixOS/nixpkgs/issues/113202
43- broken = true;
44 };
45}
46-
···1213 patches = [ ./convert.patch ];
1415+ postPatch = ''
16+ substituteInPlace convert_script.lua \
17+ --replace 'mkvpropedit_exe = "mkvpropedit"' \
18+ 'mkvpropedit_exe = "${mkvtoolnix-cli}/bin/mkvpropedit"' \
19+ --replace 'mkvmerge_exe = "mkvmerge"' \
20+ 'mkvmerge_exe = "${mkvtoolnix-cli}/bin/mkvmerge"' \
21+ --replace 'yad_exe = "yad"' \
22+ 'yad_exe = "${yad}/bin/yad"' \
23+ --replace 'notify_send_exe = "notify-send"' \
24+ 'notify_send_exe = "${libnotify}/bin/notify-send"' \
25+26 '';
2728 dontBuild = true;
···40 When this script is loaded into mpv, you can hit Alt+W to mark the beginning
41 and Alt+W again to mark the end of the clip. Then a settings window opens.
42 '';
43+ # author was asked to add a license https://gist.github.com/Zehkul/25ea7ae77b30af959be0#gistcomment-3715700
44 license = licenses.unfree;
0045 };
46}
0