pysideApiextractor: refactor to use python3
Also took the opportunity to split it to multiple outputs (cherry picked from commit 2cd5cf624ae19fd7633a22ea3a3f7986dfb611af)
This commit is contained in:
parent
39dbc77b99
commit
c6b754a67b
@ -1,8 +1,8 @@
|
|||||||
{ stdenv, fetchurl, cmake, libxml2, libxslt, python2, qt4 }:
|
{ stdenv, fetchurl, cmake, libxml2, libxslt, python3, qt4 }:
|
||||||
|
|
||||||
# This derivation does not provide any Python module and should therefore be called via `all-packages.nix`.
|
# This derivation does not provide any Python module and should therefore be called via `all-packages.nix`.
|
||||||
let
|
let
|
||||||
pythonEnv = python2.withPackages(ps: with ps; [ sphinx ]);
|
pythonEnv = python3.withPackages(ps: with ps; [ sphinx ]);
|
||||||
in stdenv.mkDerivation {
|
in stdenv.mkDerivation {
|
||||||
name = "pyside-apiextractor-0.10.10";
|
name = "pyside-apiextractor-0.10.10";
|
||||||
|
|
||||||
@ -13,7 +13,14 @@ in stdenv.mkDerivation {
|
|||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
buildInputs = [ cmake qt4 pythonEnv libxml2 libxslt ];
|
outputs = [ "out" "dev" ];
|
||||||
|
|
||||||
|
preConfigure = ''
|
||||||
|
cmakeFlagsArray=("-DCMAKE_INSTALL_PREFIX=$dev")
|
||||||
|
'';
|
||||||
|
|
||||||
|
nativeBuildInputs = [ cmake pythonEnv ];
|
||||||
|
buildInputs = [ qt4 libxml2 libxslt ];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Eases the development of bindings of Qt-based libraries for high level languages by automating most of the process";
|
description = "Eases the development of bindings of Qt-based libraries for high level languages by automating most of the process";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user