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