nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 35 lines 1.2 kB view raw
1{ fetchFromGitHub, lib, stdenv, ffmpeg, cmake, libpng, pkg-config, libjpeg 2}: 3 4stdenv.mkDerivation rec { 5 pname = "ffmpegthumbnailer"; 6 version = "unstable-2022-02-18"; 7 8 src = fetchFromGitHub { 9 owner = "dirkvdb"; 10 repo = "ffmpegthumbnailer"; 11 rev = "3db9fe895b2fa656bb40ddb7a62e27604a688171"; 12 sha256 = "0606pbg391l4s8mpyyalm9zrcnm75fwqdlrxy2gif9n21i2fm3rc"; 13 }; 14 15 nativeBuildInputs = [ cmake pkg-config ]; 16 buildInputs = [ ffmpeg libpng libjpeg ]; 17 cmakeFlags = [ "-DENABLE_THUMBNAILER=ON" ]; 18 19 meta = with lib; { 20 homepage = "https://github.com/dirkvdb/ffmpegthumbnailer"; 21 description = "A lightweight video thumbnailer"; 22 longDescription = "FFmpegthumbnailer is a lightweight video 23 thumbnailer that can be used by file managers to create thumbnails 24 for your video files. The thumbnailer uses ffmpeg o decode frames 25 from the video files, so supported videoformats depend on the 26 configuration flags of ffmpeg. 27 This thumbnailer was designed to be as fast and lightweight as possible. 28 The only dependencies are ffmpeg and libpng. 29 "; 30 platforms = platforms.linux; 31 license = licenses.gpl2Plus; 32 maintainers = [ maintainers.jagajaga ]; 33 }; 34 35}