nixpkgs-suyu/pkgs/desktops/plasma-5/kde-gtk-config/default.nix
2018-02-14 17:24:20 +08:00

21 lines
656 B
Nix

{
mkDerivation,
extra-cmake-modules,
glib, gtk2, gtk3, karchive, kcmutils, kconfigwidgets, ki18n, kiconthemes, kio,
knewstuff, gsettings_desktop_schemas
}:
mkDerivation {
name = "kde-gtk-config";
nativeBuildInputs = [ extra-cmake-modules ];
buildInputs = [
ki18n kio glib gtk2 gtk3 karchive kcmutils kconfigwidgets kiconthemes
knewstuff gsettings_desktop_schemas
];
patches = [ ./0001-follow-symlinks.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}/"
];
}