about summary refs log tree commit diff
path: root/pkgs/desktops/plasma-5/kde-gtk-config/default.nix
blob: fd3c5e71a3d69f967e2d100f8bfcd49291b7208e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{ mkDerivation
, extra-cmake-modules
, wrapGAppsHook3
, glib
, gtk3
, karchive
, kcmutils
, kconfigwidgets
, ki18n
, kiconthemes
, kio
, knewstuff
, gsettings-desktop-schemas
, xsettingsd
, kdecoration
, sass
}:

mkDerivation {
  pname = "kde-gtk-config";
  nativeBuildInputs = [ extra-cmake-modules wrapGAppsHook3 ];
  dontWrapGApps = true; # There is nothing to wrap
  buildInputs = [
    ki18n
    kio
    glib
    gtk3
    karchive
    kcmutils
    kconfigwidgets
    kiconthemes
    knewstuff
    gsettings-desktop-schemas
    xsettingsd
    kdecoration
    sass
  ];
  cmakeFlags = [
    "-DGTK2_GLIBCONFIG_INCLUDE_DIR=${glib.out}/lib/glib-2.0/include"
    "-DGLIB_SCHEMAS_DIR=${gsettings-desktop-schemas.out}/"
  ];
  # The gtkconfig KDED module will crash the daemon if the GSettings schemas
  # aren't found.
  patches = [ ./0001-gsettings-schemas-path.patch ];
  preConfigure = ''
    NIX_CFLAGS_COMPILE+=" -DGSETTINGS_SCHEMAS_PATH=\"$GSETTINGS_SCHEMAS_PATH\""
  '';
}