Merge pull request #266487 from nbraud/mpvScripts/thumbfast

authored by Maciej Krüger and committed by GitHub cb502b4d e6fc0a2e

+7 -18
+1 -1
pkgs/applications/video/mpv/scripts/default.nix
··· 20 20 quality-menu = callPackage ./quality-menu.nix { inherit buildLua; }; 21 21 simple-mpv-webui = callPackage ./simple-mpv-webui.nix { }; 22 22 sponsorblock = callPackage ./sponsorblock.nix { }; 23 - thumbfast = callPackage ./thumbfast.nix { }; 23 + thumbfast = callPackage ./thumbfast.nix { inherit buildLua; }; 24 24 thumbnail = callPackage ./thumbnail.nix { inherit buildLua; }; 25 25 uosc = callPackage ./uosc.nix { }; 26 26 visualizer = callPackage ./visualizer.nix { };
+6 -17
pkgs/applications/video/mpv/scripts/thumbfast.nix
··· 1 - { lib, stdenvNoCC, fetchFromGitHub, mpv-unwrapped }: 1 + { lib, fetchFromGitHub, buildLua, mpv-unwrapped }: 2 2 3 - stdenvNoCC.mkDerivation { 4 - name = "mpv-thumbfast"; 3 + buildLua { 4 + pname = "mpv-thumbfast"; 5 5 version = "unstable-2023-06-04"; 6 6 7 7 src = fetchFromGitHub { 8 8 owner = "po5"; 9 9 repo = "thumbfast"; 10 - rev = "6f1d92da25a7b807427f55f085e7ad4d60c4e0d7"; 11 - hash = "sha256-7CCxMPmZZRDIcWn+YbV4xzZFL80qZS5UFA25E+Y2P2Q="; 10 + rev = "4241c7daa444d3859b51b65a39d30e922adb87e9"; 11 + hash = "sha256-7EnFJVjEzqhWXAvhzURoOp/kad6WzwyidWxug6u8lVw="; 12 12 }; 13 13 14 14 postPatch = '' ··· 16 16 --replace 'mpv_path = "mpv"' 'mpv_path = "${lib.getExe mpv-unwrapped}"' 17 17 ''; 18 18 19 - dontBuild = true; 20 - 21 - installPhase = '' 22 - runHook preInstall 23 - 24 - mkdir -p $out/share/mpv/scripts 25 - cp -r thumbfast.lua $out/share/mpv/scripts/thumbfast.lua 26 - 27 - runHook postInstall 28 - ''; 29 - 30 - passthru.scriptName = "thumbfast.lua"; 19 + scriptPath = "thumbfast.lua"; 31 20 32 21 meta = { 33 22 description = "High-performance on-the-fly thumbnailer for mpv";