file-roller: refactor wrapping variables in binaries

This commit is contained in:
José Romildo Malaquias 2016-03-22 13:42:50 -03:00
parent 4fc7fa9d1d
commit 5fe5a777e4

View File

@ -1,5 +1,5 @@
{ stdenv, fetchurl, glib, pkgconfig, gnome3, intltool, itstool, libxml2, libarchive { stdenv, fetchurl, glib, pkgconfig, gnome3, intltool, itstool, libxml2, libarchive
, attr, bzip2, acl, makeWrapper, librsvg, gdk_pixbuf }: , attr, bzip2, acl, wrapGAppsHook, librsvg, gdk_pixbuf }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
inherit (import ./src.nix fetchurl) name src; inherit (import ./src.nix fetchurl) name src;
@ -7,14 +7,11 @@ stdenv.mkDerivation rec {
# TODO: support nautilus # TODO: support nautilus
# it tries to create {nautilus}/lib/nautilus/extensions-3.0/libnautilus-fileroller.so # it tries to create {nautilus}/lib/nautilus/extensions-3.0/libnautilus-fileroller.so
buildInputs = [ glib pkgconfig gnome3.gtk intltool itstool libxml2 libarchive nativeBuildInputs = [ pkgconfig wrapGAppsHook ];
gnome3.defaultIconTheme attr bzip2 acl gdk_pixbuf librsvg
makeWrapper ];
preFixup = '' buildInputs = [ glib gnome3.gtk intltool itstool libxml2 libarchive
wrapProgram "$out/bin/file-roller" \ gnome3.defaultIconTheme attr bzip2 acl gdk_pixbuf librsvg
--prefix XDG_DATA_DIRS : "$XDG_ICON_DIRS:$GSETTINGS_SCHEMAS_PATH:$out/share" gnome3.dconf ];
'';
meta = with stdenv.lib; { meta = with stdenv.lib; {
homepage = https://wiki.gnome.org/Apps/FileRoller; homepage = https://wiki.gnome.org/Apps/FileRoller;