summary refs log tree commit diff
diff options
context:
space:
mode:
authorZane van Iperen <zane@zanevaniperen.com>2020-12-26 23:57:43 +1000
committerZane van Iperen <zane@zanevaniperen.com>2021-01-01 12:52:29 +1000
commit6a4695b758e3d9e680a32e4da7815a7a3198dd77 (patch)
tree5e590e59b2dac4056f33f1d617df5cc7084c65b9
parent5ea718cb2d390caab4cd5a5164fdf0feaa9f6ae6 (diff)
downloadnixpkgs-6a4695b758e3d9e680a32e4da7815a7a3198dd77.tar
nixpkgs-6a4695b758e3d9e680a32e4da7815a7a3198dd77.tar.gz
nixpkgs-6a4695b758e3d9e680a32e4da7815a7a3198dd77.tar.bz2
nixpkgs-6a4695b758e3d9e680a32e4da7815a7a3198dd77.tar.lz
nixpkgs-6a4695b758e3d9e680a32e4da7815a7a3198dd77.tar.xz
nixpkgs-6a4695b758e3d9e680a32e4da7815a7a3198dd77.tar.zst
nixpkgs-6a4695b758e3d9e680a32e4da7815a7a3198dd77.zip
ffmpegthumbnailer: enable generation of thumbnailer file, misc cleanups
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
-rw-r--r--pkgs/development/libraries/ffmpegthumbnailer/default.nix9
1 files changed, 5 insertions, 4 deletions
diff --git a/pkgs/development/libraries/ffmpegthumbnailer/default.nix b/pkgs/development/libraries/ffmpegthumbnailer/default.nix
index 4e3c10e8829..6c8e689840e 100644
--- a/pkgs/development/libraries/ffmpegthumbnailer/default.nix
+++ b/pkgs/development/libraries/ffmpegthumbnailer/default.nix
@@ -1,4 +1,4 @@
-{ fetchFromGitHub, stdenv, ffmpeg_3, cmake, libpng, pkgconfig, libjpeg
+{ fetchFromGitHub, stdenv, ffmpeg_3, cmake, libpng, pkg-config, libjpeg
 }:
 
 stdenv.mkDerivation rec {
@@ -12,13 +12,14 @@ stdenv.mkDerivation rec {
     sha256 = "1bakbr714j7yxdal1f5iq0gcl4cxggbbgj227ihdh5kvygqlwich";
   };
 
-  nativeBuildInputs = [ cmake pkgconfig ];
+  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 
+    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
@@ -27,7 +28,7 @@ stdenv.mkDerivation rec {
         The only dependencies are ffmpeg and libpng.
     ";
     platforms = platforms.linux;
-    license = licenses.gpl2;
+    license = licenses.gpl2Plus;
     maintainers = [ maintainers.jagajaga ];
   };