2021-07-27 18:42:25 +02:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, eigen, avogadrolibs, molequeue, hdf5
|
|
|
|
, openbabel, qttools, wrapQtAppsHook
|
|
|
|
}:
|
|
|
|
|
2021-10-08 14:43:13 +02:00
|
|
|
let
|
|
|
|
avogadroI18N = fetchFromGitHub {
|
|
|
|
owner = "OpenChemistry";
|
|
|
|
repo = "avogadro-i18n";
|
|
|
|
rev = "3b8a86cc37e988b043d1503d2f11068389b0aca3";
|
|
|
|
sha256 = "9wLY7/EJyIZYnlUAMsViCwD5kGc1vCNbk8vUhb90LMQ=";
|
|
|
|
};
|
|
|
|
|
|
|
|
in stdenv.mkDerivation rec {
|
2021-07-27 18:42:25 +02:00
|
|
|
pname = "avogadro2";
|
2021-10-08 14:26:19 +02:00
|
|
|
version = "1.95.1";
|
2021-07-27 18:42:25 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "OpenChemistry";
|
|
|
|
repo = "avogadroapp";
|
|
|
|
rev = version;
|
2021-10-08 14:26:19 +02:00
|
|
|
sha256 = "9GnsxQsMuik6CPDmJbJPF0/+LXbZHf/JLevpSsMEoP0=";
|
2021-07-27 18:42:25 +02:00
|
|
|
};
|
|
|
|
|
2021-10-08 14:43:13 +02:00
|
|
|
postUnpack = ''
|
|
|
|
cp -r ${avogadroI18N} avogadro-i18n
|
|
|
|
'';
|
|
|
|
|
2021-07-27 18:42:25 +02:00
|
|
|
nativeBuildInputs = [ cmake wrapQtAppsHook ];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
avogadrolibs
|
|
|
|
molequeue
|
|
|
|
eigen
|
|
|
|
hdf5
|
|
|
|
qttools
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ openbabel ];
|
|
|
|
|
|
|
|
qtWrapperArgs = [ "--prefix PATH : ${openbabel}/bin" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Molecule editor and visualizer";
|
|
|
|
maintainers = with maintainers; [ sheepforce ];
|
|
|
|
homepage = "https://github.com/OpenChemistry/avogadroapp";
|
|
|
|
platforms = platforms.mesaPlatforms;
|
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|