summaryrefslogtreecommitdiffstats
path: root/pkgs/applications/video/mpv
diff options
context:
space:
mode:
authorKen Micklas <git@kmicklas.com>2022-01-22 20:10:02 -0500
committerKen Micklas <git@kmicklas.com>2022-01-22 20:10:02 -0500
commit90bfb6dc4b5407fe6b52988c6261e97343cc3e4e (patch)
tree296667059d87e4108c8efe53651f642c3849bb80 /pkgs/applications/video/mpv
parent112b79f8eed86338cdd4010d48476ac5fd7bca16 (diff)
mpvacious: remove hack for multi-file script loading
Diffstat (limited to 'pkgs/applications/video/mpv')
-rw-r--r--pkgs/applications/video/mpv/scripts/mpvacious.nix5
1 files changed, 1 insertions, 4 deletions
diff --git a/pkgs/applications/video/mpv/scripts/mpvacious.nix b/pkgs/applications/video/mpv/scripts/mpvacious.nix
index 9ddd6e308c3b..071f762ff4a7 100644
--- a/pkgs/applications/video/mpv/scripts/mpvacious.nix
+++ b/pkgs/applications/video/mpv/scripts/mpvacious.nix
@@ -18,10 +18,7 @@ stdenvNoCC.mkDerivation rec {
};
postPatch = ''
- # 'require' replaced with 'dofile' to work around
- # https://github.com/mpv-player/mpv/issues/7399 until fixed in mpvacious
substituteInPlace subs2srs.lua \
- --replace "require('osd_styler')" "dofile('"$out/share/mpv/scripts/mpvacious/osd_styler.lua"')" \
--replace "'curl'" "'${curl}/bin/curl'" \
--replace "'wl-copy'" "'${wl-clipboard}/bin/wl-copy'" \
--replace "xclip" "${xclip}/bin/xclip"
@@ -36,7 +33,7 @@ stdenvNoCC.mkDerivation rec {
runHook postInstall
'';
- passthru.scriptName = "mpvacious/subs2srs.lua";
+ passthru.scriptName = "mpvacious";
meta = with lib; {
description = "Adds mpv keybindings to create Anki cards from movies and TV shows";