2020-01-21 18:14:58 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
2020-03-31 15:47:18 +01:00
|
|
|
, blas
|
2020-01-21 18:14:58 +00:00
|
|
|
# Check Inputs
|
2021-03-26 09:37:22 +00:00
|
|
|
, python3
|
2020-01-21 18:14:58 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libcint";
|
2021-11-09 17:04:04 +00:00
|
|
|
version = "4.4.6";
|
2020-01-21 18:14:58 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sunqm";
|
|
|
|
repo = "libcint";
|
|
|
|
rev = "v${version}";
|
2021-11-09 17:04:04 +00:00
|
|
|
sha256 = "sha256-eWUuORMZs6Bl/zFGYZkpgNAgJPIei+k0cQoWl+v+zxo=";
|
2020-01-21 18:14:58 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
2020-03-31 15:47:18 +01:00
|
|
|
buildInputs = [ blas ];
|
2020-01-21 18:14:58 +00:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DENABLE_TEST=1"
|
|
|
|
"-DQUICK_TEST=1"
|
|
|
|
"-DCMAKE_INSTALL_PREFIX=" # ends up double-adding /nix/store/... prefix, this avoids issue
|
2021-11-09 17:04:04 +00:00
|
|
|
"-DWITH_RANGE_COULOMB:STRING=1"
|
|
|
|
"-DWITH_FORTRAN:STRING=1"
|
|
|
|
"-DMIN_EXPCUTOFF:STRING=20"
|
2020-01-21 18:14:58 +00:00
|
|
|
];
|
|
|
|
|
2021-03-26 09:37:22 +00:00
|
|
|
strictDeps = true;
|
|
|
|
|
2020-01-21 18:14:58 +00:00
|
|
|
doCheck = true;
|
2021-03-26 09:37:22 +00:00
|
|
|
checkInputs = [ python3.pkgs.numpy ];
|
2020-01-21 18:14:58 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "General GTO integrals for quantum chemistry";
|
|
|
|
longDescription = ''
|
|
|
|
libcint is an open source library for analytical Gaussian integrals.
|
|
|
|
It provides C/Fortran API to evaluate one-electron / two-electron
|
|
|
|
integrals for Cartesian / real-spheric / spinor Gaussian type functions.
|
|
|
|
'';
|
|
|
|
homepage = "http://wiki.sunqm.net/libcint";
|
|
|
|
downloadPage = "https://github.com/sunqm/libcint";
|
2020-10-07 14:02:17 +01:00
|
|
|
changelog = "https://github.com/sunqm/libcint/blob/master/ChangeLog";
|
2020-01-21 18:14:58 +00:00
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ drewrisinger ];
|
|
|
|
};
|
|
|
|
}
|