e7ec2969af
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
31 lines
1,023 B
Nix
31 lines
1,023 B
Nix
{ lib, buildLua, fetchFromGitHub, gitUpdater, python3 }:
|
|
|
|
buildLua rec {
|
|
pname = "mpv-thumbnail-script";
|
|
version = "0.5.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "marzzzello";
|
|
repo = "mpv_thumbnail_script";
|
|
rev = version;
|
|
sha256 = "sha256-J24Rou7BTE7zoiPlBkWuO9dtYJiuzkuwB4FROuzXzag=";
|
|
};
|
|
passthru.updateScript = gitUpdater {};
|
|
|
|
nativeBuildInputs = [ python3 ];
|
|
postPatch = "patchShebangs concat_files.py";
|
|
dontBuild = false;
|
|
|
|
scriptPath = "mpv_thumbnail_script_client_osc.lua";
|
|
extraScripts = [ "mpv_thumbnail_script_server.lua" ];
|
|
passthru.scriptName = "mpv_thumbnail_script_{client_osc,server}.lua";
|
|
|
|
meta = with lib; {
|
|
description = "A lua script to show preview thumbnails in mpv's OSC seekbar";
|
|
homepage = "https://github.com/marzzzello/mpv_thumbnail_script";
|
|
changelog = "https://github.com/marzzzello/mpv_thumbnail_script/releases/tag/${version}";
|
|
license = licenses.gpl3Plus;
|
|
platforms = platforms.all;
|
|
maintainers = with maintainers; [ figsoda ];
|
|
};
|
|
}
|