1{ lib, stdenv, fetchFromGitHub, cmake, libxml2, libxslt, 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 ]);
6in
7stdenv.mkDerivation rec {
8 pname = "pyside-apiextractor";
9 version = "0.10.10";
10
11 src = fetchFromGitHub {
12 owner = "PySide";
13 repo = "Apiextractor";
14 rev = version;
15 hash = "sha256-YH8aYyzv59xiIglZbdNgOPnmEQwNE2GmotAFFfFdMlg=";
16 };
17
18 outputs = [ "out" "dev" ];
19
20 preConfigure = ''
21 cmakeFlagsArray=("-DCMAKE_INSTALL_PREFIX=$dev")
22 '';
23
24 nativeBuildInputs = [ cmake pythonEnv ];
25 buildInputs = [ qt4 libxml2 libxslt ];
26
27 meta = with lib; {
28 description = "Eases the development of bindings of Qt-based libraries for high level languages by automating most of the process";
29 license = licenses.gpl2;
30 homepage = "http://www.pyside.org/docs/apiextractor/";
31 maintainers = [ ];
32 platforms = platforms.all;
33 };
34}