2021-02-05 17:12:51 +00:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, pkgs, qtbase, qmake, soqt }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pivy";
|
2022-02-10 20:34:41 +00:00
|
|
|
version = "0.6.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2020-10-07 09:15:18 +00:00
|
|
|
owner = "coin3d";
|
2020-04-24 23:36:52 +00:00
|
|
|
repo = "pivy";
|
|
|
|
rev = version;
|
2022-02-10 20:34:41 +00:00
|
|
|
sha256 = "1xlynrbq22pb252r37r80b3myzap8hzhvknz4zfznfrsg9ykh8k2";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-24 18:30:23 +00:00
|
|
|
dontUseCmakeConfigure = true;
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
nativeBuildInputs = with pkgs; [
|
2020-09-25 04:45:31 +00:00
|
|
|
swig qmake cmake
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = with pkgs; with xorg; [
|
2020-09-25 04:45:31 +00:00
|
|
|
coin3d soqt qtbase
|
2020-04-24 23:36:52 +00:00
|
|
|
libGLU libGL
|
|
|
|
libXi libXext libSM libICE libX11
|
|
|
|
];
|
|
|
|
|
|
|
|
NIX_CFLAGS_COMPILE = toString [
|
2020-09-25 04:45:31 +00:00
|
|
|
"-I${qtbase.dev}/include/QtCore"
|
|
|
|
"-I${qtbase.dev}/include/QtGui"
|
|
|
|
"-I${qtbase.dev}/include/QtOpenGL"
|
|
|
|
"-I${qtbase.dev}/include/QtWidgets"
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
dontUseQmakeConfigure = true;
|
2021-02-19 19:06:45 +00:00
|
|
|
dontWrapQtApps =true;
|
2020-04-24 23:36:52 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace CMakeLists.txt --replace \$'{SoQt_INCLUDE_DIRS}' \
|
|
|
|
\$'{Coin_INCLUDE_DIR}'\;\$'{SoQt_INCLUDE_DIRS}'
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/coin3d/pivy/";
|
|
|
|
description = "A Python binding for Coin";
|
|
|
|
license = licenses.bsd0;
|
|
|
|
maintainers = with maintainers; [ gebner ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|