at master 37 lines 1.0 kB view raw
1{ 2 lib, 3 buildLua, 4 fetchFromGitHub, 5 gitUpdater, 6 python3, 7}: 8 9buildLua rec { 10 pname = "mpv-thumbnail-script"; 11 version = "0.5.4"; 12 13 src = fetchFromGitHub { 14 owner = "marzzzello"; 15 repo = "mpv_thumbnail_script"; 16 rev = version; 17 sha256 = "sha256-nflavx25skLj9kitneL6Uz3zI2DyMMhQC595npofzbQ="; 18 }; 19 passthru.updateScript = gitUpdater { }; 20 21 nativeBuildInputs = [ python3 ]; 22 postPatch = "patchShebangs concat_files.py"; 23 dontBuild = false; 24 25 scriptPath = "mpv_thumbnail_script_client_osc.lua"; 26 extraScripts = [ "mpv_thumbnail_script_server.lua" ]; 27 passthru.scriptName = "mpv_thumbnail_script_{client_osc,server}.lua"; 28 29 meta = { 30 description = "Lua script to show preview thumbnails in mpv's OSC seekbar"; 31 homepage = "https://github.com/marzzzello/mpv_thumbnail_script"; 32 changelog = "https://github.com/marzzzello/mpv_thumbnail_script/releases/tag/${version}"; 33 license = lib.licenses.gpl3Plus; 34 platforms = lib.platforms.all; 35 maintainers = with lib.maintainers; [ figsoda ]; 36 }; 37}