Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
57 lines
889 B
Nix
57 lines
889 B
Nix
{
|
|
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
|
|
];
|
|
};
|
|
}
|