diff --git a/pkgs/desktops/kde-4.2/bindings/builder.sh b/pkgs/desktops/kde-4.2/bindings/builder.sh new file mode 100644 index 000000000000..73684b4aad89 --- /dev/null +++ b/pkgs/desktops/kde-4.2/bindings/builder.sh @@ -0,0 +1,11 @@ +source $stdenv/setup + +myPatchPhase() +{ + # Fix python site packages directory + sed -i -e "s@\${PYTHON_SITE_PACKAGES_DIR}@\${CMAKE_INSTALL_PREFIX}/lib/python2.5@g" \ + -e "s@\${SIP_DEFAULT_SIP_DIR}@\${CMAKE_INSTALL_PREFIX}/share/sip@g" \ + python/pykde4/CMakeLists.txt +} +patchPhase=myPatchPhase +genericBuild diff --git a/pkgs/desktops/kde-4.2/bindings/default.nix b/pkgs/desktops/kde-4.2/bindings/default.nix index 339ef48e2edf..05cc1da653d2 100644 --- a/pkgs/desktops/kde-4.2/bindings/default.nix +++ b/pkgs/desktops/kde-4.2/bindings/default.nix @@ -7,6 +7,7 @@ stdenv.mkDerivation { url = mirror://kde/stable/4.2.0/src/kdebindings-4.2.0.tar.bz2; md5 = "6eae8fd968da83fe65e592993e416adc"; }; + builder = ./builder.sh; CMAKE_PREFIX_PATH=kdepimlibs; buildInputs = [ cmake qt4 perl python sip pyqt4 kdelibs kdepimlibs automoc4 phonon ];