2020-11-03 02:18:15 +00:00
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitLab
|
2020-04-24 23:36:52 +00:00
|
|
|
, cmake
|
2020-11-03 02:18:15 +00:00
|
|
|
, ffmpeg
|
|
|
|
, netcdf
|
|
|
|
, qscintilla
|
|
|
|
, zlib
|
|
|
|
, boost
|
|
|
|
, git
|
|
|
|
, fftw
|
|
|
|
, hdf5
|
|
|
|
, libssh
|
|
|
|
, qt5
|
|
|
|
, python
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
2020-11-03 02:18:15 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2021-01-05 17:05:55 +00:00
|
|
|
version = "3.3.5";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "ovito";
|
|
|
|
|
2020-11-03 02:18:15 +00:00
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "stuko";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-01-05 17:05:55 +00:00
|
|
|
sha256 = "2tptLK0RU0afSFFE7uzL8bZ5j+nyRyh97ujJAHFh0wQ=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-01-05 17:05:55 +00:00
|
|
|
nativeBuildInputs = [ cmake git ];
|
|
|
|
buildInputs = [ ffmpeg netcdf qscintilla zlib boost zlib fftw hdf5 libssh qt5.qtbase qt5.qtsvg ];
|
2020-11-03 02:18:15 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = with python.pkgs; [ sphinx numpy sip pyqt5 matplotlib ase ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Scientific visualization and analysis software for atomistic simulation data";
|
|
|
|
homepage = "https://www.ovito.org";
|
2021-01-05 17:05:55 +00:00
|
|
|
license = with licenses; [ gpl3Only mit ];
|
2020-11-03 02:18:15 +00:00
|
|
|
maintainers = with maintainers; [ costrouc ];
|
2020-04-24 23:36:52 +00:00
|
|
|
# ensures not built on hydra
|
|
|
|
# https://github.com/NixOS/nixpkgs/pull/46846#issuecomment-436388048
|
|
|
|
hydraPlatforms = [ ];
|
|
|
|
};
|
|
|
|
}
|