diff --git a/pkgs/desktops/kde-4.2/default.nix b/pkgs/desktops/kde-4.2/default.nix index 659276152b26..2eb81f0eca4e 100644 --- a/pkgs/desktops/kde-4.2/default.nix +++ b/pkgs/desktops/kde-4.2/default.nix @@ -209,4 +209,13 @@ rec { inherit kdelibs kdepimlibs kdebase_workspace; inherit automoc4 phonon qca2; }; + + gtk_qt_engine = import ./extragear/gtk-qt-engine { + inherit (pkgs) stdenv fetchurl cmake qt4 perl gettext; + inherit (pkgs.xlibs) libX11; + inherit (pkgs.gtkLibs) gtk; + inherit (pkgs.gnome) libbonoboui; + inherit kdelibs; + inherit automoc4 phonon; + }; } diff --git a/pkgs/desktops/kde-4.2/extragear/gtk-qt-engine/builder.sh b/pkgs/desktops/kde-4.2/extragear/gtk-qt-engine/builder.sh new file mode 100644 index 000000000000..259263ca27b3 --- /dev/null +++ b/pkgs/desktops/kde-4.2/extragear/gtk-qt-engine/builder.sh @@ -0,0 +1,11 @@ +source $stdenv/setup + +cmakeFlags="-DINSTALL_PATH_GTK_ENGINES=$out/lib/gtk-2.0/2.10.0/engines -DINSTALL_PATH_GTK_THEMES=$out/share/themes -DINSTALL_PATH_KCONTROL_MODULES=$out/lib"; + +myPatchPhase() +{ + sed -i -e "s|\${KDE4_INCLUDE_DIR}|\${KDE4_INCLUDE_DIR} ../build/kcm_gtk|" kcm_gtk/CMakeLists.txt + sed -i -e "s|\*.po|../../\*.po|" po/CMakeLists.txt +} +patchPhase=myPatchPhase +genericBuild diff --git a/pkgs/desktops/kde-4.2/extragear/gtk-qt-engine/default.nix b/pkgs/desktops/kde-4.2/extragear/gtk-qt-engine/default.nix new file mode 100644 index 000000000000..8a572ba39fb7 --- /dev/null +++ b/pkgs/desktops/kde-4.2/extragear/gtk-qt-engine/default.nix @@ -0,0 +1,11 @@ +{stdenv, fetchurl, cmake, qt4, perl, libX11, gtk, libbonoboui, gettext, kdelibs, automoc4, phonon}: + +stdenv.mkDerivation { + name = "gtk-qt-engine-1.1"; + src = fetchurl { + url = http://gtk-qt-engine.googlecode.com/files/gtk-qt-engine-1.1.tar.bz2; + sha256 = "4310f8f179c5ab70cea614a07b0c3e84234d05388dded85596200fa754c290a6"; + }; + buildInputs = [ cmake qt4 perl libX11 gtk libbonoboui gettext kdelibs automoc4 phonon ]; + builder = ./builder.sh; +}