2017-09-10 18:00:38 +02:00
|
|
|
{stdenv, fetchFromGitHub, cmake
|
|
|
|
,full, python, mesa, libXt }:
|
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}";
|
|
|
|
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 22:06:31 +02:00
|
|
|
};
|
|
|
|
|
2017-09-10 18:00:38 +02: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 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-09-10 18:00:38 +02: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 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
|
|
|
}
|