59 lines
904 B
Nix
59 lines
904 B
Nix
{ stdenv
|
|
, lib
|
|
, fetchFromGitLab
|
|
, cmake
|
|
, ninja
|
|
, wrapQtAppsHook
|
|
, qtbase
|
|
, qtnetworkauth
|
|
, qtscxml
|
|
, qtsvg
|
|
, ffmpeg
|
|
, netcdf
|
|
, libssh
|
|
, boost
|
|
, hdf5
|
|
, python3 ? python3
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "ovito";
|
|
version = "3.8.4";
|
|
|
|
src = fetchFromGitLab {
|
|
owner = "stuko";
|
|
repo = "ovito";
|
|
rev = "v${version}";
|
|
sha256 = "Vw9mB+huQHLg8OqyGo9KEg55ag3NQG+nTJj3tB++eQk=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
ninja
|
|
wrapQtAppsHook
|
|
];
|
|
|
|
buildInputs = [
|
|
qtbase
|
|
qtnetworkauth
|
|
qtscxml
|
|
qtsvg
|
|
ffmpeg
|
|
netcdf
|
|
libssh
|
|
boost
|
|
hdf5
|
|
python3
|
|
];
|
|
|
|
cmakeFlags = [
|
|
"-DOVITO_BUILD_PYPI=${if python3 != null then "ON" else "OFF"}"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Scientific visualization and analysis software for atomistic and particle simulation data";
|
|
homepage = https://ovito.org;
|
|
license = licenses.gpl3;
|
|
};
|
|
}
|