Merge pull request #266487 from nbraud/mpvScripts/thumbfast
This commit is contained in:
commit
cb502b4d17
2 changed files with 7 additions and 18 deletions
|
@ -20,7 +20,7 @@ in lib.recurseIntoAttrs
|
||||||
quality-menu = callPackage ./quality-menu.nix { inherit buildLua; };
|
quality-menu = callPackage ./quality-menu.nix { inherit buildLua; };
|
||||||
simple-mpv-webui = callPackage ./simple-mpv-webui.nix { };
|
simple-mpv-webui = callPackage ./simple-mpv-webui.nix { };
|
||||||
sponsorblock = callPackage ./sponsorblock.nix { };
|
sponsorblock = callPackage ./sponsorblock.nix { };
|
||||||
thumbfast = callPackage ./thumbfast.nix { };
|
thumbfast = callPackage ./thumbfast.nix { inherit buildLua; };
|
||||||
thumbnail = callPackage ./thumbnail.nix { inherit buildLua; };
|
thumbnail = callPackage ./thumbnail.nix { inherit buildLua; };
|
||||||
uosc = callPackage ./uosc.nix { };
|
uosc = callPackage ./uosc.nix { };
|
||||||
visualizer = callPackage ./visualizer.nix { };
|
visualizer = callPackage ./visualizer.nix { };
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
{ lib, stdenvNoCC, fetchFromGitHub, mpv-unwrapped }:
|
{ lib, fetchFromGitHub, buildLua, mpv-unwrapped }:
|
||||||
|
|
||||||
stdenvNoCC.mkDerivation {
|
buildLua {
|
||||||
name = "mpv-thumbfast";
|
pname = "mpv-thumbfast";
|
||||||
version = "unstable-2023-06-04";
|
version = "unstable-2023-06-04";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "po5";
|
owner = "po5";
|
||||||
repo = "thumbfast";
|
repo = "thumbfast";
|
||||||
rev = "6f1d92da25a7b807427f55f085e7ad4d60c4e0d7";
|
rev = "4241c7daa444d3859b51b65a39d30e922adb87e9";
|
||||||
hash = "sha256-7CCxMPmZZRDIcWn+YbV4xzZFL80qZS5UFA25E+Y2P2Q=";
|
hash = "sha256-7EnFJVjEzqhWXAvhzURoOp/kad6WzwyidWxug6u8lVw=";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
|
@ -16,18 +16,7 @@ stdenvNoCC.mkDerivation {
|
||||||
--replace 'mpv_path = "mpv"' 'mpv_path = "${lib.getExe mpv-unwrapped}"'
|
--replace 'mpv_path = "mpv"' 'mpv_path = "${lib.getExe mpv-unwrapped}"'
|
||||||
'';
|
'';
|
||||||
|
|
||||||
dontBuild = true;
|
scriptPath = "thumbfast.lua";
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
runHook preInstall
|
|
||||||
|
|
||||||
mkdir -p $out/share/mpv/scripts
|
|
||||||
cp -r thumbfast.lua $out/share/mpv/scripts/thumbfast.lua
|
|
||||||
|
|
||||||
runHook postInstall
|
|
||||||
'';
|
|
||||||
|
|
||||||
passthru.scriptName = "thumbfast.lua";
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "High-performance on-the-fly thumbnailer for mpv";
|
description = "High-performance on-the-fly thumbnailer for mpv";
|
||||||
|
|
Loading…
Reference in a new issue