Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 48 lines 1.2 kB view raw
1{ stdenv, buildPythonPackage, fetchFromGitHub, pkgs }: 2 3buildPythonPackage rec { 4 pname = "pivy"; 5 version = "0.6.5a2"; 6 7 src = fetchFromGitHub { 8 owner = "FreeCAD"; 9 repo = "pivy"; 10 rev = version; 11 sha256 = "1w03jaha36bjyfaz8hchnv8yrkm5715w15crhd3qrlagz8fs38hm"; 12 }; 13 14 nativeBuildInputs = with pkgs; [ 15 swig qt5.qmake cmake 16 ]; 17 18 buildInputs = with pkgs; with xorg; [ 19 coin3d soqt qt5.qtbase 20 libGLU libGL 21 libXi libXext libSM libICE libX11 22 ]; 23 24 NIX_CFLAGS_COMPILE = toString [ 25 "-I${pkgs.qt5.qtbase.dev}/include/QtCore" 26 "-I${pkgs.qt5.qtbase.dev}/include/QtGui" 27 "-I${pkgs.qt5.qtbase.dev}/include/QtOpenGL" 28 "-I${pkgs.qt5.qtbase.dev}/include/QtWidgets" 29 ]; 30 31 dontUseQmakeConfigure = true; 32 dontUseCmakeConfigure = true; 33 34 doCheck = false; 35 36 postPatch = '' 37 substituteInPlace CMakeLists.txt --replace \$'{SoQt_INCLUDE_DIRS}' \ 38 \$'{Coin_INCLUDE_DIR}'\;\$'{SoQt_INCLUDE_DIRS}' 39 ''; 40 41 meta = with stdenv.lib; { 42 homepage = https://github.com/coin3d/pivy/; 43 description = "A Python binding for Coin"; 44 license = licenses.bsd0; 45 maintainers = with maintainers; [ gebner ]; 46 }; 47 48}