1 { kde, cmake, qt4, automoc4, kdelibs, phonon, python, sip, pyqt4
2 , soprano, kdepimlibs, shared_desktop_ontologies, boost, lndir }:
7 [ cmake kdelibs qt4 automoc4 phonon python sip pyqt4 soprano
8 kdepimlibs shared_desktop_ontologies boost lndir
11 NIX_CFLAGS_COMPILE = "-I${phonon}/include/phonon";
15 substituteInPlace CMakeLists.txt \
16 --replace '{SIP_DEFAULT_SIP_DIR}' '{CMAKE_INSTALL_PREFIX}/share/sip'
18 # Use an absolute path to open libpython.so.
19 substituteInPlace kpythonpluginfactory/kpythonpluginfactory.cpp \
20 --replace LIB_PYTHON \"$(echo ${python}/lib/libpython*.so.*)\"
22 # Symlink PyQt into PyKDE. This is necessary because PyQt looks
23 # in its PyQt4/uic/widget-plugins directory for plugins, and KDE
24 # needs to install a plugin.
25 mkdir -p $out/lib/python2.7
26 lndir ${pyqt4}/lib/python2.7 $out/lib/python2.7
30 description = "Python bindings for KDE";