2017-05-26 21:44:36 +01:00
|
|
|
{
|
|
|
|
mkDerivation,
|
2018-05-13 02:23:09 +01:00
|
|
|
extra-cmake-modules, wrapGAppsHook,
|
2017-05-26 21:44:36 +01:00
|
|
|
glib, gtk2, gtk3, karchive, kcmutils, kconfigwidgets, ki18n, kiconthemes, kio,
|
2020-12-03 21:39:53 +00:00
|
|
|
knewstuff, gsettings-desktop-schemas, xsettingsd, kdecoration, sass
|
2016-04-21 17:01:22 +01:00
|
|
|
}:
|
|
|
|
|
2017-05-15 17:44:58 +01:00
|
|
|
mkDerivation {
|
2016-04-21 17:01:22 +01:00
|
|
|
name = "kde-gtk-config";
|
2018-05-13 02:23:09 +01:00
|
|
|
nativeBuildInputs = [ extra-cmake-modules wrapGAppsHook ];
|
|
|
|
dontWrapGApps = true; # There is nothing to wrap
|
2017-05-22 19:49:07 +01:00
|
|
|
buildInputs = [
|
2016-04-28 18:50:55 +01:00
|
|
|
ki18n kio glib gtk2 gtk3 karchive kcmutils kconfigwidgets kiconthemes
|
2020-12-03 21:39:53 +00:00
|
|
|
knewstuff gsettings-desktop-schemas xsettingsd kdecoration sass
|
2016-04-21 17:01:22 +01:00
|
|
|
];
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DGTK2_GLIBCONFIG_INCLUDE_DIR=${glib.out}/lib/glib-2.0/include"
|
|
|
|
"-DGTK2_GDKCONFIG_INCLUDE_DIR=${gtk2.out}/lib/gtk-2.0/include"
|
2018-02-25 02:23:58 +00:00
|
|
|
"-DGLIB_SCHEMAS_DIR=${gsettings-desktop-schemas.out}/"
|
2016-04-21 17:01:22 +01:00
|
|
|
];
|
2020-08-31 16:59:35 +01:00
|
|
|
# The gtkconfig KDED module will crash the daemon if the GSettings schemas
|
|
|
|
# aren't found.
|
|
|
|
patches = [ ./0001-gsettings-schemas-path.patch ];
|
2018-05-13 02:23:09 +01:00
|
|
|
preConfigure = ''
|
|
|
|
NIX_CFLAGS_COMPILE+=" -DGSETTINGS_SCHEMAS_PATH=\"$GSETTINGS_SCHEMAS_PATH\""
|
|
|
|
'';
|
2016-04-21 17:01:22 +01:00
|
|
|
}
|