diff --git a/pkgs/all-packages.nix b/pkgs/all-packages.nix index 92af27a..f25d775 100644 --- a/pkgs/all-packages.nix +++ b/pkgs/all-packages.nix @@ -31,6 +31,8 @@ self: super: pkgs: with pkgs; { openslide = callPackage ./openslide { }; openslide-python = callPackage ./openslide/python.nix { }; + ovito = libsForQt5.callPackage ./ovito.nix { stdenv = overrideCC stdenv gcc6; }; + #sumo = callPackage ./sumo.nix { }; namd = callPackage ./namd.nix { }; diff --git a/pkgs/ovito.nix b/pkgs/ovito.nix new file mode 100644 index 0000000..e712ace --- /dev/null +++ b/pkgs/ovito.nix @@ -0,0 +1,33 @@ +{ stdenv, fetchFromGitLab, cmake +, boost, netcdf, hdf5, fftwSinglePrec, muparser, botan, libav, python +, qtbase, qtsvg, qttools, qscintilla }: + +stdenv.mkDerivation rec { + version = "2.9.0"; + name = "ovita-${version}"; + + src = fetchFromGitLab { + owner = "stuko"; + repo = "ovito"; + rev = "v${version}"; + sha256 = "0yvz0aqw0ynhv9iychk9sdq54njw3lw61cdxv8295csjzx3nyvy3"; + }; + + buildInputs = [ + cmake + boost + netcdf hdf5 + fftwSinglePrec + muparser + botan + libav + python + qtbase qtsvg qttools qscintilla + ]; + + meta = with stdenv.lib; { + description = "Scientific visualization and analysis software for atomistic and particle simulation data"; + homepage = https://ovito.org; + license = licenses.gpl3; + }; +}