2020-09-07 08:55:46 -07:00
|
|
|
{ stdenv, buildPythonPackage, fetchFromGitHub, pkgs, qtbase, qmake, soqt }:
|
2018-10-29 14:38:11 -07:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pivy";
|
2020-09-26 03:53:25 -07:00
|
|
|
version = "0.6.5";
|
2018-10-29 14:38:11 -07:00
|
|
|
|
2019-06-15 09:44:41 -07:00
|
|
|
src = fetchFromGitHub {
|
2020-09-26 03:53:25 -07:00
|
|
|
owner = "coin3d";
|
2019-06-15 09:44:41 -07:00
|
|
|
repo = "pivy";
|
|
|
|
rev = version;
|
2020-09-26 03:53:25 -07:00
|
|
|
sha256 = "0vids7sxk8w5vr73xdnf8xdci71a7syl6cd35aiisppbqyyfmykx";
|
2018-10-29 14:38:11 -07:00
|
|
|
};
|
|
|
|
|
2019-03-18 12:59:34 -07:00
|
|
|
nativeBuildInputs = with pkgs; [
|
2020-09-07 08:53:37 -07:00
|
|
|
swig qmake cmake
|
2019-03-18 12:59:34 -07:00
|
|
|
];
|
|
|
|
|
2019-01-13 06:46:17 -08:00
|
|
|
buildInputs = with pkgs; with xorg; [
|
2020-09-07 08:53:37 -07:00
|
|
|
coin3d soqt qtbase
|
2019-11-10 08:44:34 -08:00
|
|
|
libGLU libGL
|
2019-01-13 06:46:17 -08:00
|
|
|
libXi libXext libSM libICE libX11
|
|
|
|
];
|
2018-10-29 14:38:11 -07:00
|
|
|
|
2019-10-29 18:29:30 -07:00
|
|
|
NIX_CFLAGS_COMPILE = toString [
|
2020-09-07 08:53:37 -07:00
|
|
|
"-I${qtbase.dev}/include/QtCore"
|
|
|
|
"-I${qtbase.dev}/include/QtGui"
|
|
|
|
"-I${qtbase.dev}/include/QtOpenGL"
|
|
|
|
"-I${qtbase.dev}/include/QtWidgets"
|
2019-06-15 09:44:41 -07:00
|
|
|
];
|
|
|
|
|
2019-09-10 09:34:16 -07:00
|
|
|
dontUseQmakeConfigure = true;
|
|
|
|
dontUseCmakeConfigure = true;
|
|
|
|
|
2019-06-15 09:44:41 -07:00
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace CMakeLists.txt --replace \$'{SoQt_INCLUDE_DIRS}' \
|
|
|
|
\$'{Coin_INCLUDE_DIR}'\;\$'{SoQt_INCLUDE_DIRS}'
|
|
|
|
'';
|
|
|
|
|
2018-10-29 14:38:11 -07:00
|
|
|
meta = with stdenv.lib; {
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://github.com/coin3d/pivy/";
|
2018-10-29 14:38:11 -07:00
|
|
|
description = "A Python binding for Coin";
|
|
|
|
license = licenses.bsd0;
|
2019-09-10 09:34:16 -07:00
|
|
|
maintainers = with maintainers; [ gebner ];
|
2018-10-29 14:38:11 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|