about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTimo Kaufmann <timokau@zoho.com>2020-02-04 00:00:10 +0100
committerGitHub <noreply@github.com>2020-02-04 00:00:10 +0100
commitc636a45e67568398ae4795b7b084ec65878da3a4 (patch)
treeb062e2b287855609f8102771754d24b313b1331b
parent30a4f9e86959f992df3a970d75214173e3530778 (diff)
parent3e5789a223c0dd8aa6b1124f927a05de791fb3be (diff)
downloadnixlib-c636a45e67568398ae4795b7b084ec65878da3a4.tar
nixlib-c636a45e67568398ae4795b7b084ec65878da3a4.tar.gz
nixlib-c636a45e67568398ae4795b7b084ec65878da3a4.tar.bz2
nixlib-c636a45e67568398ae4795b7b084ec65878da3a4.tar.lz
nixlib-c636a45e67568398ae4795b7b084ec65878da3a4.tar.xz
nixlib-c636a45e67568398ae4795b7b084ec65878da3a4.tar.zst
nixlib-c636a45e67568398ae4795b7b084ec65878da3a4.zip
Merge pull request #78871 from drewrisinger/dr-pr-libcint
libcint: init at 3.0.19
-rw-r--r--pkgs/development/libraries/libcint/default.nix45
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 47 insertions, 0 deletions
diff --git a/pkgs/development/libraries/libcint/default.nix b/pkgs/development/libraries/libcint/default.nix
new file mode 100644
index 000000000000..e56583e45ba9
--- /dev/null
+++ b/pkgs/development/libraries/libcint/default.nix
@@ -0,0 +1,45 @@
+{ stdenv
+, lib
+, fetchFromGitHub
+, cmake
+, openblas
+  # Check Inputs
+, python2
+}:
+
+stdenv.mkDerivation rec {
+  pname = "libcint";
+  version = "3.0.19";
+
+  src = fetchFromGitHub {
+    owner = "sunqm";
+    repo = "libcint";
+    rev = "v${version}";
+    sha256 = "0x613f2hiqi2vbhp20fcl7rhxb07f2714lplzd0vkvv07phagip9";
+  };
+
+  nativeBuildInputs = [ cmake ];
+  buildInputs = [ openblas ];
+  cmakeFlags = [
+    "-DENABLE_TEST=1"
+    "-DQUICK_TEST=1"
+    "-DCMAKE_INSTALL_PREFIX=" # ends up double-adding /nix/store/... prefix, this avoids issue
+  ];
+
+  doCheck = true;
+  # Test syntax (like print statements) is written in python2. Fixed when #33 merged: https://github.com/sunqm/libcint/pull/33
+  checkInputs = [ python2.pkgs.numpy ];
+
+  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";
+    license = licenses.bsd2;
+    maintainers = with maintainers; [ drewrisinger ];
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 269e69bf529c..232b84f5aada 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -12291,6 +12291,8 @@ in
 
   libchop = callPackage ../development/libraries/libchop { };
 
+  libcint = callPackage ../development/libraries/libcint { };
+
   libclc = callPackage ../development/libraries/libclc { };
 
   libcli = callPackage ../development/libraries/libcli { };