2022-12-17 10:02:37 +00:00
|
|
|
{ fetchFromGitHub, lib, stdenv, ffmpeg-headless, cmake, libpng, pkg-config, libjpeg
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "ffmpegthumbnailer";
|
2022-04-27 09:35:20 +00:00
|
|
|
version = "unstable-2022-02-18";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dirkvdb";
|
|
|
|
repo = "ffmpegthumbnailer";
|
2022-04-27 09:35:20 +00:00
|
|
|
rev = "3db9fe895b2fa656bb40ddb7a62e27604a688171";
|
|
|
|
sha256 = "0606pbg391l4s8mpyyalm9zrcnm75fwqdlrxy2gif9n21i2fm3rc";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-01-05 17:05:55 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
2022-12-17 10:02:37 +00:00
|
|
|
buildInputs = [ ffmpeg-headless libpng libjpeg ];
|
2021-01-05 17:05:55 +00:00
|
|
|
cmakeFlags = [ "-DENABLE_THUMBNAILER=ON" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-09-30 11:47:45 +00:00
|
|
|
# https://github.com/dirkvdb/ffmpegthumbnailer/issues/215
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace libffmpegthumbnailer.pc.in \
|
|
|
|
--replace '$'{exec_prefix}/@CMAKE_INSTALL_LIBDIR@ @CMAKE_INSTALL_FULL_LIBDIR@
|
|
|
|
'';
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/dirkvdb/ffmpegthumbnailer";
|
|
|
|
description = "A lightweight video thumbnailer";
|
2021-01-05 17:05:55 +00:00
|
|
|
longDescription = "FFmpegthumbnailer is a lightweight video
|
2020-04-24 23:36:52 +00: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.
|
|
|
|
";
|
2022-12-17 10:02:37 +00:00
|
|
|
platforms = platforms.unix;
|
2021-01-05 17:05:55 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = [ maintainers.jagajaga ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|