1{ stdenv, fetchgit
2, cmake
3, qtbase, libav, netcdf, qscintilla, zlib, boost, git, fftw, hdf5, libssh
4, pythonPackages
5}:
6
7stdenv.mkDerivation rec {
8 # compilation error in 2.9.0 https://gitlab.com/stuko/ovito/issues/40
9 # This is not the "released" 3.0.0 just a commit
10 version = "3.0.0";
11 name = "ovito-${version}";
12
13 src = fetchgit {
14 url = "https://gitlab.com/stuko/ovito";
15 rev = "a28c28182a879d2a1b511ec56f9845306dd8a4db";
16 sha256 = "1vqzv3gzwf8r0g05a7fj8hdyvnzq2h3wdfck7j6n1av6rvp7hi5r";
17 };
18
19 buildInputs = [ cmake libav netcdf qscintilla zlib boost zlib git fftw hdf5 libssh ];
20 propagatedBuildInputs = with pythonPackages; [ sphinx numpy sip pyqt5 matplotlib ase ];
21
22 enableParallelBuilding = true;
23
24 meta = with stdenv.lib; {
25 description = "Scientific visualization and analysis software for atomistic simulation data";
26 homepage = https://www.ovito.org;
27 license = licenses.gpl3;
28 maintainers = [ maintainers.costrouc ];
29 # ensures not built on hydra
30 # https://github.com/NixOS/nixpkgs/pull/46846#issuecomment-436388048
31 hydraPlatforms = [ ];
32 };
33}