2021-01-21 17:00:13 +00:00
|
|
|
{ fetchFromGitHub, lib, stdenv, ffmpeg_3, cmake, libpng, pkg-config, libjpeg
|
2015-05-05 00:58:33 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "ffmpegthumbnailer";
|
2019-10-21 16:48:38 +01:00
|
|
|
version = "2.2.2";
|
2015-05-05 00:58:33 +01:00
|
|
|
|
2017-03-12 20:00:42 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dirkvdb";
|
|
|
|
repo = "ffmpegthumbnailer";
|
|
|
|
rev = version;
|
2019-10-21 16:48:38 +01:00
|
|
|
sha256 = "1bakbr714j7yxdal1f5iq0gcl4cxggbbgj227ihdh5kvygqlwich";
|
2015-05-05 00:58:33 +01:00
|
|
|
};
|
|
|
|
|
2020-12-26 13:57:43 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
2020-06-07 13:39:09 +01:00
|
|
|
buildInputs = [ ffmpeg_3 libpng libjpeg ];
|
2020-12-26 13:57:43 +00:00
|
|
|
cmakeFlags = [ "-DENABLE_THUMBNAILER=ON" ];
|
2015-05-05 00:58:33 +01:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/dirkvdb/ffmpegthumbnailer";
|
2015-05-05 00:58:33 +01:00
|
|
|
description = "A lightweight video thumbnailer";
|
2020-12-26 13:57:43 +00:00
|
|
|
longDescription = "FFmpegthumbnailer is a lightweight video
|
2015-05-05 00:58:33 +01:00
|
|
|
thumbnailer that can be used by file managers to create thumbnails
|
|
|
|
for your video files. The thumbnailer uses ffmpeg o decode frames
|
|
|
|
from the video files, so supported videoformats depend on the
|
|
|
|
configuration flags of ffmpeg.
|
|
|
|
This thumbnailer was designed to be as fast and lightweight as possible.
|
|
|
|
The only dependencies are ffmpeg and libpng.
|
|
|
|
";
|
|
|
|
platforms = platforms.linux;
|
2020-12-26 13:57:43 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2015-05-05 00:58:33 +01:00
|
|
|
maintainers = [ maintainers.jagajaga ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|