1{ lib, stdenv, fetchurl, cmake, pysideApiextractor, python3, qt4 }:
2
3# This derivation does not provide any Python module and should therefore be called via `all-packages.nix`.
4let
5 pythonEnv = python3.withPackages(ps: with ps; [ sphinx ]);
6 pname = "pyside-generatorrunner";
7 version = "0.6.16";
8in stdenv.mkDerivation {
9 name = "${pname}-${version}";
10
11 src = fetchurl {
12 url = "https://github.com/PySide/Generatorrunner/archive/0.6.16.tar.gz";
13 sha256 = "0vzk3cp0pfbhd921r8f1xkcz96znla39dhj074k623x9k26lj2sj";
14 };
15
16 outputs = [ "out" "dev" ];
17
18 preConfigure = ''
19 cmakeFlagsArray=("-DCMAKE_INSTALL_PREFIX=$dev")
20 '';
21
22 nativeBuildInputs = [ cmake pythonEnv ];
23 buildInputs = [ pysideApiextractor qt4 ];
24
25 meta = with lib; {
26 description = "Eases the development of binding generators for C++ and Qt-based libraries by providing a framework to help automating most of the process";
27 license = licenses.gpl2;
28 homepage = "http://www.pyside.org/docs/generatorrunner/";
29 maintainers = [ ];
30 platforms = platforms.all;
31 };
32}