about summary refs log tree commit diff
path: root/pkgs/kde/plasma/kde-gtk-config/default.nix
blob: 0101a56e93c689de0e9acd5e324b0193eba3cf55 (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
{
  mkKdeDerivation,
  pkg-config,
  wrapGAppsHook,
  sass,
  qtsvg,
  gsettings-desktop-schemas,
}:
mkKdeDerivation {
  pname = "kde-gtk-config";

  # 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\""
  '';

  extraNativeBuildInputs = [pkg-config wrapGAppsHook sass];
  extraBuildInputs = [qtsvg];
  dontWrapGApps = true; # There is nothing to wrap

  extraCmakeFlags = ["-DGLIB_SCHEMAS_DIR=${gsettings-desktop-schemas.out}/"];
}