nixpkgs/pkgs/applications/graphics/paraview/default.nix

59 lines
1.3 KiB
Nix
Raw Normal View History

2017-12-01 12:20:15 +00:00
{
stdenv, fetchFromGitHub, cmake
,qtbase, qttools, python, libGLU_combined
,libXt, qtx11extras, qtxmlpatterns
2017-12-01 12:20:15 +00:00
}:
stdenv.mkDerivation rec {
2017-09-10 16:00:38 +00:00
name = "paraview-${version}";
2017-12-01 12:20:15 +00:00
version = "5.4.1";
2017-09-10 16:00:38 +00: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 12:20:15 +00:00
sha256 = "1ma02sdkz2apxnwcsyvxb26ibwnjh60p71gicw6nlp042acs6v74";
2017-09-10 16:00:38 +00:00
fetchSubmodules = true;
};
2017-09-10 16:00:38 +00:00
cmakeFlags = [
"-DPARAVIEW_ENABLE_PYTHON=ON"
"-DPARAVIEW_INSTALL_DEVELOPMENT_FILES=ON"
2017-12-01 12:20:15 +00:00
"-DPARAVIEW_ENABLE_EMBEDDED_DOCUMENTATION=OFF"
2017-09-10 16:00:38 +00: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
'';
enableParallelBuilding = true;
nativeBuildInputs = [
2017-12-01 12:20:15 +00:00
cmake
];
buildInputs = [
2017-12-01 12:20:15 +00:00
python
libGLU_combined
2017-12-01 12:20:15 +00:00
libXt
qtbase
qtx11extras
qttools
qtxmlpatterns
];
2017-09-10 16:00:38 +00:00
meta = {
homepage = http://www.paraview.org/;
description = "3D Data analysis and visualization application";
license = stdenv.lib.licenses.free;
2013-05-06 20:20:07 +00:00
maintainers = with stdenv.lib.maintainers; [viric guibert];
platforms = with stdenv.lib.platforms; linux;
};
}