2017-12-01 13:20:15 +01:00
|
|
|
{
|
|
|
|
stdenv, fetchFromGitHub, cmake
|
|
|
|
,qtbase, qttools, python, mesa
|
2017-12-01 13:49:52 +01:00
|
|
|
,libXt, qtx11extras, qtxmlpatterns
|
2017-12-01 13:20:15 +01:00
|
|
|
}:
|
2009-03-30 22:06:31 +02:00
|
|
|
|
2010-01-16 12:05:17 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2017-09-10 18:00:38 +02:00
|
|
|
name = "paraview-${version}";
|
2017-12-01 13:20:15 +01:00
|
|
|
version = "5.4.1";
|
2017-09-10 18:00:38 +02: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}";
|
2017-12-01 13:20:15 +01:00
|
|
|
sha256 = "1ma02sdkz2apxnwcsyvxb26ibwnjh60p71gicw6nlp042acs6v74";
|
2017-09-10 18:00:38 +02:00
|
|
|
fetchSubmodules = true;
|
2009-03-30 22:06:31 +02:00
|
|
|
};
|
|
|
|
|
2017-09-10 18:00:38 +02:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DPARAVIEW_ENABLE_PYTHON=ON"
|
|
|
|
"-DPARAVIEW_INSTALL_DEVELOPMENT_FILES=ON"
|
2017-12-01 13:20:15 +01:00
|
|
|
"-DPARAVIEW_ENABLE_EMBEDDED_DOCUMENTATION=OFF"
|
2017-09-10 18:00:38 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
# 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 23:19:52 +01:00
|
|
|
'';
|
2015-03-06 12:09:01 +01:00
|
|
|
|
2012-02-16 12:07:07 +01:00
|
|
|
enableParallelBuilding = true;
|
2010-11-10 19:13:04 +01:00
|
|
|
|
2017-12-01 13:49:52 +01:00
|
|
|
nativeBuildInputs = [
|
2017-12-01 13:20:15 +01:00
|
|
|
cmake
|
2017-12-01 13:49:52 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2017-12-01 13:20:15 +01:00
|
|
|
python
|
|
|
|
mesa
|
|
|
|
libXt
|
|
|
|
qtbase
|
|
|
|
qtx11extras
|
|
|
|
qttools
|
|
|
|
qtxmlpatterns
|
|
|
|
];
|
2017-09-10 18:00:38 +02:00
|
|
|
|
2009-10-01 22:18:17 +02:00
|
|
|
|
|
|
|
meta = {
|
2017-08-01 22:03:30 +02:00
|
|
|
homepage = http://www.paraview.org/;
|
2009-10-01 22:18:17 +02:00
|
|
|
description = "3D Data analysis and visualization application";
|
2014-11-06 01:44:33 +01:00
|
|
|
license = stdenv.lib.licenses.free;
|
2013-05-06 22:20:07 +02:00
|
|
|
maintainers = with stdenv.lib.maintainers; [viric guibert];
|
2009-10-01 22:18:17 +02:00
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
|
|
|
};
|
2009-03-30 22:06:31 +02:00
|
|
|
}
|