1{ pkgs, fetchFromGitHub, stdenv, ffmpeg, cmake, libpng, pkgconfig, libjpeg
2}:
3
4stdenv.mkDerivation rec {
5 name = "ffmpegthumbnailer-${version}";
6 version = "2.2.0";
7
8 src = fetchFromGitHub {
9 owner = "dirkvdb";
10 repo = "ffmpegthumbnailer";
11 rev = version;
12 sha256 = "0kl8aa547icy9b05njps02a8sw4yn4f8fzs228kig247sn09s4cp";
13 };
14
15 nativeBuildInputs = [ cmake pkgconfig ];
16 buildInputs = [ ffmpeg libpng libjpeg ];
17
18 meta = with stdenv.lib; {
19 homepage = https://github.com/dirkvdb/ffmpegthumbnailer;
20 description = "A lightweight video thumbnailer";
21 longDescription = "FFmpegthumbnailer is a lightweight video
22 thumbnailer that can be used by file managers to create thumbnails
23 for your video files. The thumbnailer uses ffmpeg o decode frames
24 from the video files, so supported videoformats depend on the
25 configuration flags of ffmpeg.
26 This thumbnailer was designed to be as fast and lightweight as possible.
27 The only dependencies are ffmpeg and libpng.
28 ";
29 platforms = platforms.linux;
30 license = licenses.gpl2;
31 maintainers = [ maintainers.jagajaga ];
32 };
33
34}