Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 49 lines 1.6 kB view raw
1{ 2 lib, 3 fetchgit, 4 unstableGitUpdater, 5 6 buildLua, 7 libnotify, 8 mkvtoolnix-cli, 9 yad, 10}: 11 12buildLua { 13 pname = "mpv-convert-script"; 14 version = "0-unstable-2015-07-02"; 15 src = fetchgit { 16 url = "https://gist.github.com/Zehkul/25ea7ae77b30af959be0"; 17 rev = "f95cee43e390e843a47e8ec9d1711a12a8cd343d"; 18 sha256 = "13m7l4sy2r8jv2sfrb3vvqvnim4a9ilnv28q5drlg09v298z3mck"; 19 }; 20 passthru.updateScript = unstableGitUpdater { }; 21 22 patches = [ ./convert.patch ]; 23 24 postPatch = '' 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}"' \ 34 ''; 35 36 scriptPath = "convert_script.lua"; 37 38 meta = with lib; { 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 ]; 42 longDescription = '' 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. 45 ''; 46 # author was asked to add a license https://gist.github.com/Zehkul/25ea7ae77b30af959be0#gistcomment-3715700 47 license = licenses.unfree; 48 }; 49}