2017-09-10 16:00:38 +00:00
|
|
|
{stdenv, fetchFromGitHub, cmake
|
|
|
|
,full, python, mesa, libXt }:
|
2009-03-30 20:06:31 +00:00
|
|
|
|
2010-01-16 11:05:17 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2017-09-10 16:00:38 +00: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-30 20:06:31 +00:00
|
|
|
};
|
|
|
|
|
2017-09-10 16:00:38 +00: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-10 22:19:52 +00:00
|
|
|
'';
|
2015-03-06 11:09:01 +00:00
|
|
|
|
2012-02-16 11:07:07 +00:00
|
|
|
enableParallelBuilding = true;
|
2010-11-10 18:13:04 +00:00
|
|
|
|
2017-09-10 16:00:38 +00: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-01 20:18:17 +00:00
|
|
|
|
|
|
|
meta = {
|
2017-08-01 20:03:30 +00:00
|
|
|
homepage = http://www.paraview.org/;
|
2009-10-01 20:18:17 +00:00
|
|
|
description = "3D Data analysis and visualization application";
|
2014-11-06 00:44:33 +00:00
|
|
|
license = stdenv.lib.licenses.free;
|
2013-05-06 20:20:07 +00:00
|
|
|
maintainers = with stdenv.lib.maintainers; [viric guibert];
|
2009-10-01 20:18:17 +00:00
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
|
|
|
};
|
2009-03-30 20:06:31 +00:00
|
|
|
}
|