forgejo-lts: 7.0.10 -> 7.0.11
[NixPkgs.git] / pkgs / desktops / plasma-5 / kde-gtk-config / default.nix
blobfd3c5e71a3d69f967e2d100f8bfcd49291b7208e
1 { mkDerivation
2 , extra-cmake-modules
3 , wrapGAppsHook3
4 , glib
5 , gtk3
6 , karchive
7 , kcmutils
8 , kconfigwidgets
9 , ki18n
10 , kiconthemes
11 , kio
12 , knewstuff
13 , gsettings-desktop-schemas
14 , xsettingsd
15 , kdecoration
16 , sass
19 mkDerivation {
20   pname = "kde-gtk-config";
21   nativeBuildInputs = [ extra-cmake-modules wrapGAppsHook3 ];
22   dontWrapGApps = true; # There is nothing to wrap
23   buildInputs = [
24     ki18n
25     kio
26     glib
27     gtk3
28     karchive
29     kcmutils
30     kconfigwidgets
31     kiconthemes
32     knewstuff
33     gsettings-desktop-schemas
34     xsettingsd
35     kdecoration
36     sass
37   ];
38   cmakeFlags = [
39     "-DGTK2_GLIBCONFIG_INCLUDE_DIR=${glib.out}/lib/glib-2.0/include"
40     "-DGLIB_SCHEMAS_DIR=${gsettings-desktop-schemas.out}/"
41   ];
42   # The gtkconfig KDED module will crash the daemon if the GSettings schemas
43   # aren't found.
44   patches = [ ./0001-gsettings-schemas-path.patch ];
45   preConfigure = ''
46     NIX_CFLAGS_COMPILE+=" -DGSETTINGS_SCHEMAS_PATH=\"$GSETTINGS_SCHEMAS_PATH\""
47   '';