Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.09 36 lines 776 B view raw
1{ buildPythonPackage, python, fetchurl, stdenv, pyside2, 2 cmake, qt5, llvmPackages }: 3 4stdenv.mkDerivation { 5 pname = "shiboken2"; 6 7 inherit (pyside2) version src; 8 9 patches = [ 10 ./nix_compile_cflags.patch 11 ]; 12 13 postPatch = '' 14 cd sources/shiboken2 15 ''; 16 17 CLANG_INSTALL_DIR = llvmPackages.libclang.out; 18 19 nativeBuildInputs = [ cmake ]; 20 buildInputs = [ llvmPackages.libclang python qt5.qtbase qt5.qtxmlpatterns ]; 21 22 cmakeFlags = [ 23 "-DBUILD_TESTS=OFF" 24 ]; 25 26 postInstall = '' 27 rm $out/bin/shiboken_tool.py 28 ''; 29 30 meta = with stdenv.lib; { 31 description = "Generator for the PySide2 Qt bindings"; 32 license = with licenses; [ gpl2 lgpl21 ]; 33 homepage = "https://wiki.qt.io/Qt_for_Python"; 34 maintainers = with maintainers; [ gebner ]; 35 }; 36}