2022-08-21 13:32:41 +00:00
|
|
|
{ lib, stdenvNoCC, fetchFromGitHub, python3 }:
|
2021-03-23 19:22:30 +00:00
|
|
|
|
2021-04-22 02:08:21 +00:00
|
|
|
stdenvNoCC.mkDerivation rec {
|
2022-11-04 12:27:35 +00:00
|
|
|
pname = "mpv-thumbnail-script";
|
2023-01-20 10:41:00 +00:00
|
|
|
version = "0.5.2";
|
2021-03-23 19:22:30 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2022-08-21 13:32:41 +00:00
|
|
|
owner = "marzzzello";
|
2022-11-04 12:27:35 +00:00
|
|
|
repo = "mpv_thumbnail_script";
|
2022-08-21 13:32:41 +00:00
|
|
|
rev = version;
|
2023-01-20 10:41:00 +00:00
|
|
|
sha256 = "sha256-6J1eeuSYyUJmWLIl9WsQ4NzQOBJNO3Cnl5jcPEal4vM=";
|
2021-03-23 19:22:30 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ python3 ];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
patchShebangs concat_files.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
mkdir -p $out/share/mpv/scripts
|
|
|
|
cp mpv_thumbnail_script_{client_osc,server}.lua $out/share/mpv/scripts
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
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";
|
2022-08-21 13:32:41 +00:00
|
|
|
homepage = "https://github.com/marzzzello/mpv_thumbnail_script";
|
2023-01-20 10:41:00 +00:00
|
|
|
changelog = "https://github.com/marzzzello/mpv_thumbnail_script/releases/tag/${version}";
|
2021-03-23 19:22:30 +00:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ figsoda ];
|
|
|
|
};
|
|
|
|
}
|