2011-07-21 22:54:40 +01:00
|
|
|
{ kde, cmake, qt4, automoc4, kdelibs, phonon, python, sip, pyqt4
|
2011-07-22 02:28:09 +01:00
|
|
|
, soprano, kdepimlibs, shared_desktop_ontologies, boost, lndir }:
|
2011-07-21 22:54:40 +01:00
|
|
|
|
|
|
|
kde.package {
|
|
|
|
|
|
|
|
buildInputs =
|
|
|
|
[ cmake kdelibs qt4 automoc4 phonon python sip pyqt4 soprano
|
2011-07-22 02:28:09 +01:00
|
|
|
kdepimlibs shared_desktop_ontologies boost lndir
|
2011-07-21 22:54:40 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
NIX_CFLAGS_COMPILE = "-I${phonon}/include/phonon";
|
|
|
|
|
|
|
|
preConfigure =
|
|
|
|
''
|
|
|
|
substituteInPlace CMakeLists.txt \
|
|
|
|
--replace '{SIP_DEFAULT_SIP_DIR}' '{CMAKE_INSTALL_PREFIX}/share/sip'
|
2011-07-22 02:28:09 +01:00
|
|
|
|
|
|
|
# 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 -p $out/lib/python2.7
|
|
|
|
lndir ${pyqt4}/lib/python2.7 $out/lib/python2.7
|
2011-07-21 22:54:40 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Python bindings for KDE";
|
|
|
|
kde.name = "pykde4";
|
|
|
|
};
|
|
|
|
}
|