Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mpvScripts.thumbnail: init at unstable-2020-01-16 #115800

Merged
merged 1 commit into from
Mar 20, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
36 changes: 36 additions & 0 deletions pkgs/applications/video/mpv/scripts/thumbnail.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{ fetchFromGitHub, lib, python3, stdenv }:

stdenv.mkDerivation rec {
pname = "mpv_thumbnail_script";
version = "unstable-2020-01-16";

src = fetchFromGitHub {
owner = "theamm";
repo = pname;
rev = "682becf5b5115c2a206b4f0bdee413d4be8b5bef";
sha256 = "0dgfrb8ypc5vlq35kzn423fm6l6348ivl85vb6j3ccc9a51xprw3";
};

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";
homepage = "https://github.com/theamm/mpv_thumbnail_script";
license = licenses.gpl3Plus;
platforms = platforms.all;
maintainers = with maintainers; [ figsoda ];
};
}
1 change: 1 addition & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24018,6 +24018,7 @@ in
mpvacious = callPackage ../applications/video/mpv/scripts/mpvacious.nix {};
simple-mpv-webui = callPackage ../applications/video/mpv/scripts/simple-mpv-webui.nix {};
sponsorblock = callPackage ../applications/video/mpv/scripts/sponsorblock.nix {};
thumbnail = callPackage ../applications/video/mpv/scripts/thumbnail.nix { };
};

mrpeach = callPackage ../applications/audio/pd-plugins/mrpeach { };
Expand Down