depot/third_party/nixpkgs/pkgs/applications/video/mpv/scripts/thumbnail.nix
Default email 83627f9931 Project import generated by Copybara.
GitOrigin-RevId: 2893f56de08021cffd9b6b6dfc70fd9ccd51eb60
2024-06-24 14:47:55 -04:00

37 lines
1 KiB
Nix

{
lib,
buildLua,
fetchFromGitHub,
gitUpdater,
python3,
}:
buildLua rec {
pname = "mpv-thumbnail-script";
version = "0.5.4";
src = fetchFromGitHub {
owner = "marzzzello";
repo = "mpv_thumbnail_script";
rev = version;
sha256 = "sha256-nflavx25skLj9kitneL6Uz3zI2DyMMhQC595npofzbQ=";
};
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 = "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 ];
};
}