2014-08-01 13:50:09 +02:00
|
|
|
{ stdenv, fetchurl, cmake, pysideApiextractor, pysideGeneratorrunner, python27, python27Packages, qt4 }:
|
2011-12-17 21:16:45 +01:00
|
|
|
|
2015-12-10 21:40:00 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "${python.libPrefix}-pyside-shiboken-${version}";
|
|
|
|
version = "1.2.4";
|
2011-12-17 21:16:45 +01:00
|
|
|
|
2014-08-01 13:50:09 +02:00
|
|
|
src = fetchurl {
|
2015-12-10 21:40:00 +01:00
|
|
|
url = "https://github.com/PySide/Shiboken/archive/${version}.tar.gz";
|
|
|
|
sha256 = "1536f73a3353296d97a25e24f9554edf3e6a48126886f8d21282c3645ecb96a4";
|
2011-12-17 21:16:45 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
buildInputs = [ cmake pysideApiextractor pysideGeneratorrunner python27 python27Packages.sphinx qt4 ];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
echo "preConfigure: Fixing shiboken_generator install target."
|
|
|
|
substituteInPlace generator/CMakeLists.txt --replace \
|
|
|
|
\"$\{GENERATORRUNNER_PLUGIN_DIR}\" lib/generatorrunner/
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Plugin (front-end) for pyside-generatorrunner, that generates bindings for C++ libraries using CPython source code";
|
|
|
|
license = stdenv.lib.licenses.gpl2;
|
|
|
|
homepage = "http://www.pyside.org/docs/shiboken/";
|
|
|
|
maintainers = [ stdenv.lib.maintainers.chaoflow ];
|
|
|
|
platforms = stdenv.lib.platforms.all;
|
|
|
|
};
|
|
|
|
}
|