diff options
author | Azat Bahawi <azat@bahawi.net> | 2023-11-19 21:58:34 +0300 |
---|---|---|
committer | Azat Bahawi <azat@bahawi.net> | 2023-11-19 21:58:34 +0300 |
commit | edf7cc355cb1f55a9301283ebec15e01dc4ffe62 (patch) | |
tree | bf7745040efadac618168b7a9a764acb482acb07 /packages/mpv-autosub.nix | |
parent | 2023-11-16 (diff) |
2023-11-19
Diffstat (limited to '')
-rw-r--r-- | packages/mpv-autosub.nix | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/packages/mpv-autosub.nix b/packages/mpv-autosub.nix deleted file mode 100644 index e3fc221..0000000 --- a/packages/mpv-autosub.nix +++ /dev/null @@ -1,46 +0,0 @@ -{ - fetchFromGitHub, - lib, - mpv-unwrapped, - python3Packages, - stdenvNoCC, -}: -stdenvNoCC.mkDerivation (finalAttrs: { - pname = "mpv-autosub"; - version = "unstable-2021-06-29"; - - src = fetchFromGitHub { - owner = "davidde"; - repo = finalAttrs.pname; - rev = "35115355bd339681f97d067538356c29e5b14afa"; - hash = "sha256-BKT/Tzwl5ZA4fbdc/cxz0+CYc1zyY/KOXc58x5GYow0="; - }; - - postPatch = '' - substituteInPlace autosub.lua \ - --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" - - sed -iE '/.*add_key_binding.*/d' autosub.lua - ''; - - installPhase = '' - runHook preInstall - - install -Dm644 autosub.lua $out/share/mpv/scripts/autosub.lua - - runHook postInstall - ''; - - passthru.scriptName = "autosub.lua"; - - meta = with lib; { - description = "Automatic downloading of subtitles for MPV"; - inherit (finalAttrs.src.meta) homepage; - license = licenses.mit; - inherit (mpv-unwrapped.meta) platforms; - maintainers = with maintainers; [azahi]; - }; -}) |