nixpkgs/pkgs/desktops/kde-4.14/kdebindings/pykde4.nix

35 lines
857 B
Nix
Raw Normal View History

{ kde, kdelibs, python, pyqt4, kdepimlibs, shared_desktop_ontologies,
polkit_qt4, boost, lndir, pkgconfig }:
2014-09-20 13:09:11 +04:00
let pydir = "lib/python${python.majorVersion}"; in
kde {
2016-03-11 14:53:14 +03:00
patches = [ ./pykde4-gcc-5.patch ];
2014-09-20 13:09:11 +04:00
# todo: polkit isn't found by the build system
buildInputs = [
python kdepimlibs shared_desktop_ontologies
boost polkit_qt4
2014-09-20 13:09:11 +04:00
];
nativeBuildInputs = [ pkgconfig ];
propagatedBuildInputs = [ pyqt4 ];
2014-09-20 13:09:11 +04: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";
};
}