2012-01-06 22:50:10 +01:00
|
|
|
{ kde, kdelibs, python, sip, pyqt4, kdepimlibs, shared_desktop_ontologies,
|
|
|
|
boost, lndir }:
|
|
|
|
|
|
|
|
let pydir = "lib/python${python.majorVersion}"; in
|
|
|
|
|
|
|
|
kde {
|
|
|
|
buildInputs = [ python kdepimlibs shared_desktop_ontologies boost ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ pyqt4 sip ];
|
|
|
|
|
2012-01-19 21:27:59 +01:00
|
|
|
patches = [ ./pykde4-hardcode-lib-python.patch ];
|
2012-01-06 22:50:10 +01:00
|
|
|
|
2012-01-19 21:27:59 +01:00
|
|
|
cmakeFlags = "-DHARDCODE_LIB_PYTHON_PATH=ON ";
|
2012-01-06 22:50:10 +01:00
|
|
|
|
|
|
|
preConfigure =
|
|
|
|
''
|
|
|
|
# Symlink PyQt into PyKDE. This is necessary because PyQt looks
|
|
|
|
# in its PyQt4/uic/widget-plugins directory for plugins, and KDE
|
|
|
|
# needs to install a plugin.
|
|
|
|
mkdir -pv $out/${pydir}
|
|
|
|
${lndir}/bin/lndir ${pyqt4}/${pydir} $out/${pydir}
|
2012-01-19 21:27:59 +01:00
|
|
|
cmakeFlagsArray=( "-DSIP_DEFAULT_SIP_DIR=$prefix/share/sip" )
|
2012-01-06 22:50:10 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Python bindings for KDE";
|
|
|
|
kde.name = "pykde4";
|
|
|
|
};
|
|
|
|
}
|