2021-01-11 07:54:33 +00:00
|
|
|
{ buildPythonPackage, python, fetchurl, lib, stdenv, pyside2
|
2021-01-08 17:47:37 +00:00
|
|
|
, cmake, qt5, llvmPackages }:
|
2019-06-16 17:28:54 +01:00
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
stdenv.mkDerivation {
|
2019-06-16 17:28:54 +01:00
|
|
|
pname = "shiboken2";
|
|
|
|
|
|
|
|
inherit (pyside2) version src;
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
./nix_compile_cflags.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
cd sources/shiboken2
|
|
|
|
'';
|
|
|
|
|
2019-09-09 00:38:31 +01:00
|
|
|
CLANG_INSTALL_DIR = llvmPackages.libclang.out;
|
2019-06-16 17:28:54 +01:00
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ llvmPackages.libclang python qt5.qtbase qt5.qtxmlpatterns ];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DBUILD_TESTS=OFF"
|
|
|
|
];
|
|
|
|
|
2021-01-12 11:50:23 +00:00
|
|
|
dontWrapQtApps = true;
|
|
|
|
|
2019-06-16 17:28:54 +01:00
|
|
|
postInstall = ''
|
|
|
|
rm $out/bin/shiboken_tool.py
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-06-16 17:28:54 +01:00
|
|
|
description = "Generator for the PySide2 Qt bindings";
|
|
|
|
license = with licenses; [ gpl2 lgpl21 ];
|
|
|
|
homepage = "https://wiki.qt.io/Qt_for_Python";
|
|
|
|
maintainers = with maintainers; [ gebner ];
|
2021-01-08 17:47:37 +00:00
|
|
|
broken = stdenv.isDarwin;
|
2019-06-16 17:28:54 +01:00
|
|
|
};
|
|
|
|
}
|