1{ stdenv, fetchurl, cmake, pysideApiextractor, pysideGeneratorrunner, python27, python27Packages, qt4 }:
2
3stdenv.mkDerivation {
4 name = "pyside-shiboken-1.2.2";
5
6 src = fetchurl {
7 url = "http://download.qt-project.org/official_releases/pyside/shiboken-1.2.2.tar.bz2";
8 sha256 = "1i75ziljl7rgb88nf26hz6cm8jf5kbs9r33b1j8zs4z33z7vn9bn";
9 };
10
11 enableParallelBuilding = true;
12
13 buildInputs = [ cmake pysideApiextractor pysideGeneratorrunner python27 python27Packages.sphinx qt4 ];
14
15 preConfigure = ''
16 echo "preConfigure: Fixing shiboken_generator install target."
17 substituteInPlace generator/CMakeLists.txt --replace \
18 \"$\{GENERATORRUNNER_PLUGIN_DIR}\" lib/generatorrunner/
19 '';
20
21 meta = {
22 description = "Plugin (front-end) for pyside-generatorrunner, that generates bindings for C++ libraries using CPython source code";
23 license = stdenv.lib.licenses.gpl2;
24 homepage = "http://www.pyside.org/docs/shiboken/";
25 maintainers = [ stdenv.lib.maintainers.chaoflow ];
26 platforms = stdenv.lib.platforms.all;
27 };
28}