12 stdenv.mkDerivation rec {
13 pname = "ffmpegthumbnailer";
14 version = "unstable-2024-01-04";
16 src = fetchFromGitHub {
18 repo = "ffmpegthumbnailer";
19 rev = "1b5a77983240bcf00a4ef7702c07bcd8f4e5f97c";
20 hash = "sha256-7SPRQMPgdvP7J3HCf7F1eXxZjUH5vCYZ9UOwTUFMLp0=";
34 cmakeFlags = [ "-DENABLE_THUMBNAILER=ON" ];
36 # https://github.com/dirkvdb/ffmpegthumbnailer/issues/215
38 substituteInPlace libffmpegthumbnailer.pc.in \
39 --replace '$'{exec_prefix}/@CMAKE_INSTALL_LIBDIR@ @CMAKE_INSTALL_FULL_LIBDIR@
43 substituteInPlace $out/share/thumbnailers/ffmpegthumbnailer.thumbnailer \
44 --replace-fail '=ffmpegthumbnailer' "=$out/bin/ffmpegthumbnailer"
48 description = "Lightweight video thumbnailer";
49 longDescription = "FFmpegthumbnailer is a lightweight video
50 thumbnailer that can be used by file managers to create thumbnails
51 for your video files. The thumbnailer uses ffmpeg to decode frames
52 from the video files, so supported videoformats depend on the
53 configuration flags of ffmpeg.
54 This thumbnailer was designed to be as fast and lightweight as possible.
55 The only dependencies are ffmpeg and libpng/libjpeg.
57 homepage = "https://github.com/dirkvdb/ffmpegthumbnailer";
58 license = licenses.gpl2Plus;
59 maintainers = [ maintainers.jagajaga ];
60 platforms = platforms.unix;
61 mainProgram = "ffmpegthumbnailer";