Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

57 lines
889 B
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
stdenv,
lib,
gfortran,
fetchFromGitHub,
cmake,
blas,
lapack,
python3Packages,
}:
assert blas.isILP64 == lapack.isILP64;
stdenv.mkDerivation rec {
pname = "mopac";
version = "23.2";
src = fetchFromGitHub {
owner = "openmopac";
repo = "mopac";
rev = "v${version}";
hash = "sha256-P2BEXzclHJHSoaIIgCKVC3j63Af+J6rO0acwjv9ybbA=";
};
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
];
};
}