mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-17 10:24:15 +00:00
6a4695b758
Passing "-DENABLE_THUMBNAILER=ON" to CMake causes it to install "ffmpegthumbnailer.thumbnailer" into /share/thumbnailers, making it actually usable with desktop environments. Cleanups: - remove trailing whitespace - change pkgconfig -> pkg-config - change license from gpl2 to gpl2Plus
36 lines
1.2 KiB
Nix
36 lines
1.2 KiB
Nix
{ fetchFromGitHub, stdenv, ffmpeg_3, cmake, libpng, pkg-config, libjpeg
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "ffmpegthumbnailer";
|
|
version = "2.2.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "dirkvdb";
|
|
repo = "ffmpegthumbnailer";
|
|
rev = version;
|
|
sha256 = "1bakbr714j7yxdal1f5iq0gcl4cxggbbgj227ihdh5kvygqlwich";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
|
buildInputs = [ ffmpeg_3 libpng libjpeg ];
|
|
cmakeFlags = [ "-DENABLE_THUMBNAILER=ON" ];
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = "https://github.com/dirkvdb/ffmpegthumbnailer";
|
|
description = "A lightweight video thumbnailer";
|
|
longDescription = "FFmpegthumbnailer is a lightweight video
|
|
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;
|
|
license = licenses.gpl2Plus;
|
|
maintainers = [ maintainers.jagajaga ];
|
|
};
|
|
|
|
}
|