Skip to content

Commit

Permalink
mpvScripts.autosubsync-mpv: alass -> ffsubsync
Browse files Browse the repository at this point in the history
alass is going to be removed for being abandoned upstream.
  • Loading branch information
alyssais committed Jan 31, 2025
1 parent e2807b2 commit 50c6dfe
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkgs/applications/video/mpv/scripts/autosubsync-mpv.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
lib,
fetchFromGitHub,
buildLua,
alass,
ffsubsync,
}:

buildLua {
Expand All @@ -20,9 +20,9 @@ buildLua {
patchPhase = ''
runHook prePatch
substituteInPlace autosubsync.lua \
--replace-warn 'alass_path = ""' 'alass_path = "${alass}/bin/alass-cli"' \
--replace-warn 'audio_subsync_tool = "ask"' 'audio_subsync_tool = "alass"' \
--replace-warn 'altsub_subsync_tool = "ask"' 'altsub_subsync_tool = "alass"'
--replace-warn 'ffsubsync_path = ""' 'ffsubsync_path = "${lib.getExe ffsubsync}"' \
--replace-warn 'audio_subsync_tool = "ask"' 'audio_subsync_tool = "ffsubsync"' \
--replace-warn 'altsub_subsync_tool = "ask"' 'altsub_subsync_tool = "ffsubsync"'
runHook postPatch
'';

Expand Down

0 comments on commit 50c6dfe

Please sign in to comment.