pysideGeneratorrunner: refactor to use python3
This commit is contained in:
parent
c6b754a67b
commit
335d21df85
@ -1,8 +1,8 @@
|
|||||||
{ stdenv, fetchurl, cmake, pysideApiextractor, python2, qt4 }:
|
{ stdenv, fetchurl, cmake, pysideApiextractor, 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 ]);
|
||||||
pname = "pyside-generatorrunner";
|
pname = "pyside-generatorrunner";
|
||||||
version = "0.6.16";
|
version = "0.6.16";
|
||||||
in stdenv.mkDerivation {
|
in stdenv.mkDerivation {
|
||||||
@ -15,7 +15,14 @@ in stdenv.mkDerivation {
|
|||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
buildInputs = [ cmake pysideApiextractor qt4 pythonEnv ];
|
outputs = [ "out" "dev" ];
|
||||||
|
|
||||||
|
preConfigure = ''
|
||||||
|
cmakeFlagsArray=("-DCMAKE_INSTALL_PREFIX=$dev")
|
||||||
|
'';
|
||||||
|
|
||||||
|
nativeBuildInputs = [ cmake pythonEnv ];
|
||||||
|
buildInputs = [ pysideApiextractor qt4 ];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Eases the development of binding generators for C++ and Qt-based libraries by providing a framework to help automating most of the process";
|
description = "Eases the development of binding generators for C++ and Qt-based libraries by providing a framework to help automating most of the process";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user