2017-12-01 12:20:15 +00:00
|
|
|
{
|
2018-03-19 15:43:03 +00:00
|
|
|
stdenv, fetchFromGitHub, cmake, makeWrapper
|
2018-02-24 13:12:44 +00:00
|
|
|
,qtbase, qttools, python, libGLU_combined
|
2017-12-01 12:49:52 +00:00
|
|
|
,libXt, qtx11extras, qtxmlpatterns
|
2017-12-01 12:20:15 +00:00
|
|
|
}:
|
2009-03-30 21:06:31 +01:00
|
|
|
|
2010-01-16 11:05:17 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2017-09-10 17:00:38 +01:00
|
|
|
name = "paraview-${version}";
|
2018-07-19 01:05:15 +01:00
|
|
|
version = "5.5.2";
|
2017-09-10 17:00:38 +01:00
|
|
|
|
|
|
|
# fetching from GitHub instead of taking an "official" source
|
|
|
|
# tarball because of missing submodules there
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Kitware";
|
|
|
|
repo = "ParaView";
|
|
|
|
rev = "v${version}";
|
2018-07-19 01:05:15 +01:00
|
|
|
sha256 = "1jivph7lppnflmjsiirhgv0mnh8mxx41i1vzkk78ynn00rzacx3j";
|
2017-09-10 17:00:38 +01:00
|
|
|
fetchSubmodules = true;
|
2009-03-30 21:06:31 +01:00
|
|
|
};
|
|
|
|
|
2018-03-19 15:43:03 +00:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DPARAVIEW_ENABLE_PYTHON=ON"
|
|
|
|
"-DPARAVIEW_INSTALL_DEVELOPMENT_FILES=ON"
|
|
|
|
"-DPARAVIEW_ENABLE_EMBEDDED_DOCUMENTATION=OFF"
|
2018-07-19 01:05:15 +01:00
|
|
|
"-DOpenGL_GL_PREFERENCE=GLVND"
|
2018-03-19 15:43:03 +00:00
|
|
|
];
|
2017-09-10 17:00:38 +01:00
|
|
|
|
|
|
|
# During build, binaries are called that rely on freshly built
|
|
|
|
# libraries. These reside in build/lib, and are not found by
|
|
|
|
# default.
|
|
|
|
preBuild = ''
|
2018-07-19 01:05:15 +01:00
|
|
|
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PWD/lib:$PWD/VTK/ThirdParty/vtkm/vtk-m/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-12-01 12:49:52 +00:00
|
|
|
nativeBuildInputs = [
|
2017-12-01 12:20:15 +00:00
|
|
|
cmake
|
2018-03-19 15:43:03 +00:00
|
|
|
makeWrapper
|
2017-12-01 12:49:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2017-12-01 12:20:15 +00:00
|
|
|
python
|
2018-03-19 15:43:03 +00:00
|
|
|
python.pkgs.numpy
|
2018-02-24 13:12:44 +00:00
|
|
|
libGLU_combined
|
2017-12-01 12:20:15 +00:00
|
|
|
libXt
|
|
|
|
qtbase
|
|
|
|
qtx11extras
|
|
|
|
qttools
|
|
|
|
qtxmlpatterns
|
|
|
|
];
|
2017-09-10 17:00:38 +01:00
|
|
|
|
2018-03-19 15:43:03 +00:00
|
|
|
# Paraview links into the Python library, resolving symbolic links on the way,
|
|
|
|
# so we need to put the correct sitePackages (with numpy) back on the path
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/paraview \
|
|
|
|
--set PYTHONPATH "${python.pkgs.numpy}/${python.sitePackages}"
|
|
|
|
wrapProgram $out/bin/pvbatch \
|
|
|
|
--set PYTHONPATH "${python.pkgs.numpy}/${python.sitePackages}"
|
|
|
|
wrapProgram $out/bin/pvpython \
|
|
|
|
--set PYTHONPATH "${python.pkgs.numpy}/${python.sitePackages}"
|
|
|
|
'';
|
2009-10-01 21:18:17 +01:00
|
|
|
|
|
|
|
meta = {
|
2017-08-01 21:03:30 +01:00
|
|
|
homepage = http://www.paraview.org/;
|
2009-10-01 21:18:17 +01:00
|
|
|
description = "3D Data analysis and visualization application";
|
2014-11-06 00:44:33 +00:00
|
|
|
license = stdenv.lib.licenses.free;
|
2013-05-06 21:20:07 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers; [viric guibert];
|
2009-10-01 21:18:17 +01:00
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
|
|
|
};
|
2009-03-30 21:06:31 +01:00
|
|
|
}
|