forked from mirrors/nixpkgs
1c3492f358
Fixes: #38919 The KCModule is patched to set the appropriate environment variables in the parent process when it is initialized.
26 lines
872 B
Nix
26 lines
872 B
Nix
{
|
|
mkDerivation,
|
|
extra-cmake-modules, wrapGAppsHook,
|
|
glib, gtk2, gtk3, karchive, kcmutils, kconfigwidgets, ki18n, kiconthemes, kio,
|
|
knewstuff, gsettings-desktop-schemas
|
|
}:
|
|
|
|
mkDerivation {
|
|
name = "kde-gtk-config";
|
|
nativeBuildInputs = [ extra-cmake-modules wrapGAppsHook ];
|
|
dontWrapGApps = true; # There is nothing to wrap
|
|
buildInputs = [
|
|
ki18n kio glib gtk2 gtk3 karchive kcmutils kconfigwidgets kiconthemes
|
|
knewstuff gsettings-desktop-schemas
|
|
];
|
|
patches = [ ./patches/follow-symlinks.patch ./patches/gsettings.patch ];
|
|
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}/"
|
|
];
|
|
preConfigure = ''
|
|
NIX_CFLAGS_COMPILE+=" -DGSETTINGS_SCHEMAS_PATH=\"$GSETTINGS_SCHEMAS_PATH\""
|
|
'';
|
|
}
|