2023-02-09 11:40:11 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, gfortran
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, blas
|
|
|
|
, lapack
|
|
|
|
, python3Packages
|
|
|
|
}:
|
|
|
|
|
|
|
|
assert blas.isILP64 == lapack.isILP64;
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "mopac";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "22.1.0";
|
2023-02-09 11:40:11 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "openmopac";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-4jQ0WCHK07CXWUPj5Z1zSXObKxnitMj+FJQbLDiS2Dc=";
|
2023-02-09 11:40:11 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ gfortran cmake ];
|
|
|
|
|
|
|
|
buildInputs = [ blas lapack ];
|
|
|
|
|
|
|
|
checkInputs = with python3Packages; [ python numpy ];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
export OMP_NUM_THREADS=2
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Semiempirical quantum chemistry";
|
|
|
|
homepage = "https://github.com/openmopac/mopac";
|
|
|
|
license = licenses.lgpl3Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ sheepforce markuskowa ];
|
|
|
|
};
|
|
|
|
}
|