···1+{stdenv, fetchFromGitHub, cmake
2+,full, python, mesa, libXt }:
0000034stdenv.mkDerivation rec {
5+ name = "paraview-${version}";
6+ version = "5.4.0";
7+8+ # fetching from GitHub instead of taking an "official" source
9+ # tarball because of missing submodules there
10+ src = fetchFromGitHub {
11+ owner = "Kitware";
12+ repo = "ParaView";
13+ rev = "v${version}";
14+ sha256 = "0h1vkgwm10mc5mnr3djp81lxr5pi0hyj776z77hiib6xm5596q9n";
15+ fetchSubmodules = true;
16 };
1718+ cmakeFlags = [
19+ "-DPARAVIEW_ENABLE_PYTHON=ON"
20+ "-DPARAVIEW_INSTALL_DEVELOPMENT_FILES=ON"
21+ ];
000000000002223+ # During build, binaries are called that rely on freshly built
24+ # libraries. These reside in build/lib, and are not found by
25+ # default.
26+ preBuild = ''
27+ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PWD/lib
28+ '';
2930 enableParallelBuilding = true;
3132+ buildInputs = [ cmake
33+ python
34+ mesa
35+ libXt
36+37+ # theoretically the following should be fine, but there is an error
38+ # due to missing libqminimal when not using qt5.full
39+40+ # qtbase qtx11extras qttools
41+ full
42+ ];
43+4445 meta = {
46 homepage = http://www.paraview.org/;