at 22.05-pre 32 lines 999 B view raw
1{ lib, stdenv, fetchurl, 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 = fetchurl { 12 url = "https://github.com/PySide/Apiextractor/archive/${version}.tar.gz"; 13 sha256 = "1zj8yrxy08iv1pk38djxw3faimm226w6wmi0gm32w4yczblylwz3"; 14 }; 15 16 outputs = [ "out" "dev" ]; 17 18 preConfigure = '' 19 cmakeFlagsArray=("-DCMAKE_INSTALL_PREFIX=$dev") 20 ''; 21 22 nativeBuildInputs = [ cmake pythonEnv ]; 23 buildInputs = [ qt4 libxml2 libxslt ]; 24 25 meta = with lib; { 26 description = "Eases the development of bindings of Qt-based libraries for high level languages by automating most of the process"; 27 license = licenses.gpl2; 28 homepage = "http://www.pyside.org/docs/apiextractor/"; 29 maintainers = [ ]; 30 platforms = platforms.all; 31 }; 32}