nixpkgs/pkgs/desktops/plasma-5/kde-gtk-config/default.nix

26 lines
872 B
Nix
Raw Normal View History

2017-05-26 20:44:36 +00:00
{
mkDerivation,
extra-cmake-modules, wrapGAppsHook,
2017-05-26 20:44:36 +00:00
glib, gtk2, gtk3, karchive, kcmutils, kconfigwidgets, ki18n, kiconthemes, kio,
knewstuff, gsettings-desktop-schemas
2016-04-21 16:01:22 +00:00
}:
mkDerivation {
2016-04-21 16:01:22 +00:00
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
2016-04-21 16:01:22 +00:00
];
patches = [ ./patches/follow-symlinks.patch ./patches/gsettings.patch ];
2016-04-21 16:01:22 +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}/"
2016-04-21 16:01:22 +00:00
];
preConfigure = ''
NIX_CFLAGS_COMPILE+=" -DGSETTINGS_SCHEMAS_PATH=\"$GSETTINGS_SCHEMAS_PATH\""
'';
2016-04-21 16:01:22 +00:00
}