nautilus: refactor wrapping variables in binaries

This commit is contained in:
José Romildo Malaquias 2016-03-22 13:41:14 -03:00
parent 877a08b7d5
commit 4fc7fa9d1d

View File

@ -1,21 +1,15 @@
{ stdenv, fetchurl, pkgconfig, libxml2, dbus_glib, shared_mime_info, libexif
, gtk, gnome3, libunique, intltool, gobjectIntrospection
, libnotify, makeWrapper, exempi, librsvg, tracker }:
, libnotify, wrapGAppsHook, exempi, librsvg, tracker }:
stdenv.mkDerivation rec {
inherit (import ./src.nix fetchurl) name src;
buildInputs = [ pkgconfig libxml2 dbus_glib shared_mime_info libexif gtk libunique intltool exempi librsvg
gnome3.gnome_desktop gnome3.adwaita-icon-theme
gnome3.gsettings_desktop_schemas libnotify makeWrapper tracker ];
nativeBuildInputs = [ pkgconfig wrapGAppsHook ];
preFixup = ''
wrapProgram "$out/bin/nautilus" \
--prefix GI_TYPELIB_PATH : "$GI_TYPELIB_PATH" \
--set GDK_PIXBUF_MODULE_FILE "$GDK_PIXBUF_MODULE_FILE" \
--prefix XDG_DATA_DIRS : "$XDG_ICON_DIRS:$out/share" \
--suffix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH"
'';
buildInputs = [ libxml2 dbus_glib shared_mime_info libexif gtk libunique intltool exempi librsvg
gnome3.gnome_desktop gnome3.adwaita-icon-theme
gnome3.gsettings_desktop_schemas gnome3.dconf libnotify tracker ];
patches = [ ./extension_dir.patch ];