depot/third_party/nixpkgs/pkgs/applications/science/chemistry/ergoscf/default.nix
Default email a3bb8d7922 Project import generated by Copybara.
GitOrigin-RevId: 439b1605227b8adb1357b55ce8529d541abbe9eb
2021-08-06 00:33:18 +03:00

40 lines
966 B
Nix

{ lib, stdenv, fetchurl, blas, lapack } :
stdenv.mkDerivation rec {
pname = "ergoscf";
version = "3.8";
src = fetchurl {
url = "http://www.ergoscf.org/source/tarfiles/ergo-${version}.tar.gz";
sha256 = "1s50k2gfs3y6r5kddifn4p0wmj0yk85wm5vf9v3swm1c0h43riix";
};
buildInputs = [ blas lapack ];
patches = [ ./math-constants.patch ];
postPatch = ''
patchShebangs ./test
'';
configureFlags = [
"--enable-linalgebra-templates"
"--enable-performance"
] ++ lib.optional stdenv.isx86_64 "--enable-sse-intrinsics";
LDFLAGS = "-lblas -llapack";
enableParallelBuilding = true;
OMP_NUM_THREADS = 2; # required for check phase
doCheck = true;
meta = with lib; {
description = "Quantum chemistry program for large-scale self-consistent field calculations";
homepage = "http://www.ergoscf.org";
license = licenses.gpl3Plus;
maintainers = [ maintainers.markuskowa ];
platforms = platforms.linux;
};
}