11 stdenv.mkDerivation rec {
15 src = fetchFromGitHub {
19 hash = "sha256-URJcC0ib87ejrTCglCjhC2tQHNc5TRvo4CQ52N58n+4=";
23 sed -i 's/libcint.so/libcint${stdenv.hostPlatform.extensions.sharedLibrary}/g' testsuite/*.py
26 nativeBuildInputs = [ cmake ];
27 buildInputs = [ blas ];
31 "-DCMAKE_INSTALL_PREFIX=" # ends up double-adding /nix/store/... prefix, this avoids issue
32 "-DWITH_RANGE_COULOMB:STRING=1"
33 "-DWITH_FORTRAN:STRING=1"
34 "-DMIN_EXPCUTOFF:STRING=20"
40 nativeCheckInputs = [ python3.pkgs.numpy ];
43 description = "General GTO integrals for quantum chemistry";
45 libcint is an open source library for analytical Gaussian integrals.
46 It provides C/Fortran API to evaluate one-electron / two-electron
47 integrals for Cartesian / real-spheric / spinor Gaussian type functions.
49 homepage = "http://wiki.sunqm.net/libcint";
50 downloadPage = "https://github.com/sunqm/libcint";
51 changelog = "https://github.com/sunqm/libcint/blob/master/ChangeLog";
52 license = licenses.bsd2;
53 maintainers = with maintainers; [ drewrisinger ];
54 platforms = platforms.unix;