Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 30 lines 976 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 stdenv.mkDerivation { 7 name = "pyside-apiextractor-0.10.10"; 8 9 src = fetchurl { 10 url = "https://github.com/PySide/Apiextractor/archive/0.10.10.tar.gz"; 11 sha256 = "1zj8yrxy08iv1pk38djxw3faimm226w6wmi0gm32w4yczblylwz3"; 12 }; 13 14 outputs = [ "out" "dev" ]; 15 16 preConfigure = '' 17 cmakeFlagsArray=("-DCMAKE_INSTALL_PREFIX=$dev") 18 ''; 19 20 nativeBuildInputs = [ cmake pythonEnv ]; 21 buildInputs = [ qt4 libxml2 libxslt ]; 22 23 meta = with lib; { 24 description = "Eases the development of bindings of Qt-based libraries for high level languages by automating most of the process"; 25 license = licenses.gpl2; 26 homepage = "http://www.pyside.org/docs/apiextractor/"; 27 maintainers = [ ]; 28 platforms = platforms.all; 29 }; 30}