2016-08-14 11:37:20 +01:00
|
|
|
{ kde, kdelibs, pythonPackages, kdepimlibs, shared_desktop_ontologies,
|
2014-11-18 01:00:17 +00:00
|
|
|
polkit_qt4, boost, lndir, pkgconfig }:
|
2014-09-20 10:09:11 +01:00
|
|
|
|
2016-08-14 11:37:20 +01:00
|
|
|
let
|
|
|
|
inherit (pythonPackages) python pyqt4;
|
|
|
|
pydir = "lib/python${python.majorVersion}";
|
|
|
|
in kde {
|
2014-09-20 10:09:11 +01:00
|
|
|
|
2016-03-11 11:53:14 +00:00
|
|
|
patches = [ ./pykde4-gcc-5.patch ];
|
|
|
|
|
2014-09-20 10:09:11 +01:00
|
|
|
# todo: polkit isn't found by the build system
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
python kdepimlibs shared_desktop_ontologies
|
2014-11-18 01:00:17 +00:00
|
|
|
boost polkit_qt4
|
2014-09-20 10:09:11 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
|
2014-12-23 07:42:30 +00:00
|
|
|
propagatedBuildInputs = [ pyqt4 ];
|
2014-09-20 10:09:11 +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}
|
|
|
|
cmakeFlagsArray=( "-DSIP_DEFAULT_SIP_DIR=$prefix/share/sip" )
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Python bindings for KDE";
|
|
|
|
};
|
|
|
|
}
|