about summary refs log tree commit diff
path: root/packages
diff options
context:
space:
mode:
Diffstat (limited to 'packages')
-rw-r--r--packages/mpv-autosub.nix8
1 files changed, 5 insertions, 3 deletions
diff --git a/packages/mpv-autosub.nix b/packages/mpv-autosub.nix
index b7804a1..daee8cc 100644
--- a/packages/mpv-autosub.nix
+++ b/packages/mpv-autosub.nix
@@ -5,7 +5,7 @@
 }:
 stdenvNoCC.mkDerivation rec {
   pname = "mpv-autosub";
-  version = "git";
+  version = "unstable-2021-06-29";
 
   src = fetchFromGitHub {
     owner = "davidde";
@@ -16,8 +16,10 @@ stdenvNoCC.mkDerivation rec {
 
   postPatch = ''
     substituteInPlace autosub.lua \
-      --replace '/home/david/.local/bin/subliminal' \
-      '${python3Packages.subliminal}/bin/subliminal'
+      --replace '/home/david/.local/bin/subliminal' '${python3Packages.subliminal}/bin/subliminal' \
+      --replace "'Dutch', 'nl', 'dut'" "'Russian', 'ru', 'rus'" \
+      --replace "'tta'" "'tta', 'webm'" \
+      --replace "disabled for audio files" "disabled for this filetype"
   '';
 
   installPhase = ''

Consider giving Nix/NixOS a try! <3