2017-09-10 19:00:38 +03:00
|
|
|
{stdenv, fetchFromGitHub, cmake
|
|
|
|
,full, python, mesa, libXt }:
|
2009-03-31 00:06:31 +04:00
|
|
|
|
2010-01-16 14:05:17 +03:00
|
|
|
stdenv.mkDerivation rec {
|
2017-09-10 19:00:38 +03:00
|
|
|
name = "paraview-${version}";
|
|
|
|
version = "5.4.0";
|
|
|
|
|
|
|
|
# fetching from GitHub instead of taking an "official" source
|
|
|
|
# tarball because of missing submodules there
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Kitware";
|
|
|
|
repo = "ParaView";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0h1vkgwm10mc5mnr3djp81lxr5pi0hyj776z77hiib6xm5596q9n";
|
|
|
|
fetchSubmodules = true;
|
2009-03-31 00:06:31 +04:00
|
|
|
};
|
|
|
|
|
2017-09-10 19:00:38 +03:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DPARAVIEW_ENABLE_PYTHON=ON"
|
|
|
|
"-DPARAVIEW_INSTALL_DEVELOPMENT_FILES=ON"
|
|
|
|
];
|
|
|
|
|
|
|
|
# During build, binaries are called that rely on freshly built
|
|
|
|
# libraries. These reside in build/lib, and are not found by
|
|
|
|
# default.
|
|
|
|
preBuild = ''
|
|
|
|
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PWD/lib
|
2009-12-11 01:19:52 +03:00
|
|
|
'';
|
2015-03-06 14:09:01 +03:00
|
|
|
|
2012-02-16 15:07:07 +04:00
|
|
|
enableParallelBuilding = true;
|
2010-11-10 21:13:04 +03:00
|
|
|
|
2017-09-10 19:00:38 +03:00
|
|
|
buildInputs = [ cmake
|
|
|
|
python
|
|
|
|
mesa
|
|
|
|
libXt
|
|
|
|
|
|
|
|
# theoretically the following should be fine, but there is an error
|
|
|
|
# due to missing libqminimal when not using qt5.full
|
|
|
|
|
|
|
|
# qtbase qtx11extras qttools
|
|
|
|
full
|
|
|
|
];
|
|
|
|
|
2009-10-02 00:18:17 +04:00
|
|
|
|
|
|
|
meta = {
|
2017-08-01 23:03:30 +03:00
|
|
|
homepage = http://www.paraview.org/;
|
2009-10-02 00:18:17 +04:00
|
|
|
description = "3D Data analysis and visualization application";
|
2014-11-06 03:44:33 +03:00
|
|
|
license = stdenv.lib.licenses.free;
|
2013-05-07 00:20:07 +04:00
|
|
|
maintainers = with stdenv.lib.maintainers; [viric guibert];
|
2009-10-02 00:18:17 +04:00
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
|
|
|
};
|
2009-03-31 00:06:31 +04:00
|
|
|
}
|