9 pname = "autosubsync-mpv";
10 version = "0-unstable-2022-12-26";
12 src = fetchFromGitHub {
13 owner = "joaquintorres";
14 repo = "autosubsync-mpv";
15 rev = "22cb928ecd94cc8cadaf8c354438123c43e0c70d";
16 sha256 = "sha256-XQPFC7l9MTZAW5FfULRQJfu/7FuGj9bbjQUZhNv0rlc=";
19 # While nixpkgs only packages alass, we might as well make that the default
22 substituteInPlace autosubsync.lua \
23 --replace-warn 'alass_path = ""' 'alass_path = "${alass}/bin/alass-cli"' \
24 --replace-warn 'audio_subsync_tool = "ask"' 'audio_subsync_tool = "alass"' \
25 --replace-warn 'altsub_subsync_tool = "ask"' 'altsub_subsync_tool = "alass"'
30 passthru.scriptName = "autosubsync-mpv";
33 description = "Automatically sync subtitles in mpv using the `n` button";
34 homepage = "https://github.com/joaquintorres/autosubsync-mpv";
35 maintainers = with maintainers; [ kovirobi ];
36 license = licenses.mit;