From d8b0c942a1ec2101e0b74044aea01c9b281dce03 Mon Sep 17 00:00:00 2001 From: Sergey Mironov Date: Tue, 12 Nov 2013 15:37:49 +0400 Subject: [PATCH] xfce: enable tumbler the thumbnail manager (close #1206) --- .../services/x11/desktop-managers/xfce.nix | 1 + pkgs/desktops/xfce/core/tumbler.nix | 18 ++++++++++++++++-- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/nixos/modules/services/x11/desktop-managers/xfce.nix b/nixos/modules/services/x11/desktop-managers/xfce.nix index 8199829ef90f..d20010c70a61 100644 --- a/nixos/modules/services/x11/desktop-managers/xfce.nix +++ b/nixos/modules/services/x11/desktop-managers/xfce.nix @@ -72,6 +72,7 @@ in pkgs.xfce.thunar_volman pkgs.xfce.gvfs pkgs.xfce.xfce4_appfinder + pkgs.xfce.tumbler ] ++ optional config.powerManagement.enable pkgs.xfce.xfce4_power_manager; diff --git a/pkgs/desktops/xfce/core/tumbler.nix b/pkgs/desktops/xfce/core/tumbler.nix index 1e7c3c5127e7..06902792624e 100644 --- a/pkgs/desktops/xfce/core/tumbler.nix +++ b/pkgs/desktops/xfce/core/tumbler.nix @@ -1,4 +1,5 @@ -{ stdenv, fetchurl, pkgconfig, intltool, dbus_glib, gdk_pixbuf }: +{ stdenv, fetchurl, pkgconfig, intltool, dbus_glib, gdk_pixbuf, curl, freetype, +libgsf, poppler, bzip2 }: stdenv.mkDerivation rec { p_name = "tumbler"; @@ -11,11 +12,24 @@ stdenv.mkDerivation rec { }; name = "${p_name}-${ver_maj}.${ver_min}"; - buildInputs = [ pkgconfig intltool dbus_glib gdk_pixbuf ]; + buildInputs = [ pkgconfig intltool dbus_glib gdk_pixbuf curl freetype + poppler libgsf bzip2]; + + configureFlags = [ + # Needs gst-tag + # "--enable-gstreamer-thumbnailer" + + # Needs libffmpegthumbnailer + # "--enable-ffmpeg-thumbnailer" + + "--enable-odf-thumbnailer" + "--enable-poppler-thumbnailer" + ]; meta = { homepage = http://git.xfce.org/xfce/tumbler/; description = "A D-Bus thumbnailer service"; + platforms = stdenv.lib.platforms.linux; license = "GPLv2"; }; }