ibus: remove gconf dependency from runtime

wrapGAppsHook adds gconf to runtime even though we only need
gsettings-schema-convert utility during build.

This decreases the closure size 514M → 394M
This commit is contained in:
Jan Tojnar 2019-03-02 17:33:08 +01:00
parent 025c2abd08
commit f577861b8a
No known key found for this signature in database
GPG key ID: 7FAB2A15F7A607A4

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, fetchFromGitHub, autoreconfHook, gconf, intltool, makeWrapper, pkgconfig
{ stdenv, fetchurl, runCommand, fetchFromGitHub, autoreconfHook, gconf, intltool, makeWrapper, pkgconfig
, vala, wrapGAppsHook, dbus, dconf ? null, glib, gdk_pixbuf, gobject-introspection, gtk2
, gtk3, gtk-doc, isocodes, python3, json-glib, libnotify ? null, enablePythonLibrary ? true
, enableUI ? true, withWayland ? false, libxkbcommon ? null, wayland ? null
@ -59,6 +59,13 @@ let
makeWrapper ${glib.dev}/bin/glib-mkenums $out/bin/glib-mkenums --unset PYTHONPATH
'';
};
# stop gconf from leaking into environment
# can be removed in ibus 1.6 which will not use gconf anymore
gsettings-schema-convert = runCommand "name" {} ''
mkdir -p $out/bin
ln -s ${gconf}/bin/gsettings-schema-convert $out/bin
'';
in
stdenv.mkDerivation rec {
@ -97,7 +104,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [
autoreconfHook
gconf
gsettings-schema-convert
gtk-doc
intltool
makeWrapper