2022-10-21 18:38:19 +00:00
|
|
|
{ mkDerivation
|
|
|
|
, extra-cmake-modules
|
|
|
|
, wrapGAppsHook
|
|
|
|
, glib
|
|
|
|
, gtk2
|
|
|
|
, gtk3
|
|
|
|
, karchive
|
|
|
|
, kcmutils
|
|
|
|
, kconfigwidgets
|
|
|
|
, ki18n
|
|
|
|
, kiconthemes
|
|
|
|
, kio
|
|
|
|
, knewstuff
|
|
|
|
, gsettings-desktop-schemas
|
|
|
|
, xsettingsd
|
|
|
|
, kdecoration
|
|
|
|
, sass
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
mkDerivation {
|
2022-03-10 19:12:11 +00:00
|
|
|
pname = "kde-gtk-config";
|
2020-04-24 23:36:52 +00:00
|
|
|
nativeBuildInputs = [ extra-cmake-modules wrapGAppsHook ];
|
2022-10-21 18:38:19 +00:00
|
|
|
dontWrapGApps = true; # There is nothing to wrap
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [
|
2022-10-21 18:38:19 +00:00
|
|
|
ki18n
|
|
|
|
kio
|
|
|
|
glib
|
|
|
|
gtk2
|
|
|
|
gtk3
|
|
|
|
karchive
|
|
|
|
kcmutils
|
|
|
|
kconfigwidgets
|
|
|
|
kiconthemes
|
|
|
|
knewstuff
|
|
|
|
gsettings-desktop-schemas
|
|
|
|
xsettingsd
|
|
|
|
kdecoration
|
|
|
|
sass
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DGTK2_GLIBCONFIG_INCLUDE_DIR=${glib.out}/lib/glib-2.0/include"
|
|
|
|
"-DGTK2_GDKCONFIG_INCLUDE_DIR=${gtk2.out}/lib/gtk-2.0/include"
|
|
|
|
"-DGLIB_SCHEMAS_DIR=${gsettings-desktop-schemas.out}/"
|
|
|
|
];
|
2020-09-25 04:45:31 +00:00
|
|
|
# The gtkconfig KDED module will crash the daemon if the GSettings schemas
|
|
|
|
# aren't found.
|
|
|
|
patches = [ ./0001-gsettings-schemas-path.patch ];
|
2020-04-24 23:36:52 +00:00
|
|
|
preConfigure = ''
|
|
|
|
NIX_CFLAGS_COMPILE+=" -DGSETTINGS_SCHEMAS_PATH=\"$GSETTINGS_SCHEMAS_PATH\""
|
|
|
|
'';
|
|
|
|
}
|