56 lines
889 B
Nix
56 lines
889 B
Nix
{
|
|
stdenv,
|
|
lib,
|
|
gfortran,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
blas,
|
|
lapack,
|
|
python3Packages,
|
|
}:
|
|
|
|
assert blas.isILP64 == lapack.isILP64;
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "mopac";
|
|
version = "23.0.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "openmopac";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-y9/b+ro9CgDo0ld9q+3xaCFE9J5ssZp6W9ct6WQgD/o=";
|
|
};
|
|
|
|
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
|
|
];
|
|
};
|
|
}
|