mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 22:20:51 +00:00
31f4a9b559
«the desktop file … is in an insecure location»
which pops up when invoking desktop files that are
symlinks to the /nix/store
this error was added by this commit:
1ec8ff89ec
«Only allow direct execution of desktop files in an
XDG directory and if they are executable.»
43 lines
1.2 KiB
Nix
43 lines
1.2 KiB
Nix
{ stdenv, fetchurl, pkgconfig, intltool
|
|
, gtk, dbus_glib, libstartup_notification, libnotify, libexif, pcre, udev
|
|
, exo, libxfce4util, xfconf, xfce4panel
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
p_name = "thunar";
|
|
ver_maj = "1.6";
|
|
ver_min = "10";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://xfce/src/xfce/${p_name}/${ver_maj}/Thunar-${ver_maj}.${ver_min}.tar.bz2";
|
|
sha256 = "7e9d24067268900e5e44d3325e60a1a2b2f8f556ec238ec12574fbea15fdee8a";
|
|
};
|
|
|
|
name = "${p_name}-build-${ver_maj}.${ver_min}";
|
|
|
|
patches = [ ./thunarx_plugins_directory.patch ];
|
|
|
|
postPatch = ''
|
|
sed -i -e 's|thunar_dialogs_show_insecure_program (parent, _(".*"), file, exec)|1|' thunar/thunar-file.c
|
|
'';
|
|
|
|
buildInputs = [
|
|
pkgconfig intltool
|
|
gtk dbus_glib libstartup_notification libnotify libexif pcre udev
|
|
exo libxfce4util xfconf xfce4panel
|
|
];
|
|
# TODO: optionality?
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
preFixup = "rm $out/share/icons/hicolor/icon-theme.cache";
|
|
|
|
meta = {
|
|
homepage = http://thunar.xfce.org/;
|
|
description = "Xfce file manager";
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
|
platforms = stdenv.lib.platforms.linux;
|
|
maintainers = [ stdenv.lib.maintainers.eelco ];
|
|
};
|
|
}
|