Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09 1.1 kB view raw
1{ stdenv, buildPythonPackage, fetchFromGitHub, pkgs, qtbase, qmake, soqt }: 2 3buildPythonPackage rec { 4 pname = "pivy"; 5 version = "0.6.5"; 6 7 src = fetchFromGitHub { 8 owner = "coin3d"; 9 repo = "pivy"; 10 rev = version; 11 sha256 = "0vids7sxk8w5vr73xdnf8xdci71a7syl6cd35aiisppbqyyfmykx"; 12 }; 13 14 nativeBuildInputs = with pkgs; [ 15 swig qmake cmake 16 ]; 17 18 buildInputs = with pkgs; with xorg; [ 19 coin3d soqt qtbase 20 libGLU libGL 21 libXi libXext libSM libICE libX11 22 ]; 23 24 NIX_CFLAGS_COMPILE = toString [ 25 "-I${qtbase.dev}/include/QtCore" 26 "-I${qtbase.dev}/include/QtGui" 27 "-I${qtbase.dev}/include/QtOpenGL" 28 "-I${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}