lol
1{ stdenv, fetchurl, pkgconfig, intltool
2, gtk, dbus-glib, libstartup_notification, libnotify, libexif, pcre, udev
3, exo, libxfce4util, xfconf, xfce4-panel, hicolor-icon-theme, wrapGAppsHook
4}:
5
6stdenv.mkDerivation rec {
7 p_name = "thunar";
8 ver_maj = "1.6";
9 ver_min = "10";
10
11 src = fetchurl {
12 url = "mirror://xfce/src/xfce/${p_name}/${ver_maj}/Thunar-${ver_maj}.${ver_min}.tar.bz2";
13 sha256 = "7e9d24067268900e5e44d3325e60a1a2b2f8f556ec238ec12574fbea15fdee8a";
14 };
15
16 name = "${p_name}-build-${ver_maj}.${ver_min}";
17
18 patches = [ ./thunarx_plugins_directory.patch ];
19
20 postPatch = ''
21 sed -i -e 's|thunar_dialogs_show_insecure_program (parent, _(".*"), file, exec)|1|' thunar/thunar-file.c
22 '';
23
24 nativeBuildInputs = [ pkgconfig wrapGAppsHook ];
25 buildInputs = [
26 intltool
27 gtk dbus-glib libstartup_notification libnotify libexif pcre udev
28 exo libxfce4util xfconf xfce4-panel
29 hicolor-icon-theme
30 ];
31 # TODO: optionality?
32
33 enableParallelBuilding = true;
34
35 meta = {
36 homepage = http://thunar.xfce.org/;
37 description = "Xfce file manager";
38 license = stdenv.lib.licenses.gpl2Plus;
39 platforms = stdenv.lib.platforms.linux;
40 maintainers = [ stdenv.lib.maintainers.eelco ];
41 };
42}