summary refs log tree commit diff
path: root/pkgs/development/libraries/libxc
diff options
context:
space:
mode:
authorMarkus Kowalewski <markus.kowalewski@gmail.com>2017-12-30 21:11:12 -0800
committerOrivej Desh <orivej@gmx.fr>2017-12-31 06:08:22 +0000
commit2e9af56306cfda79e4f67c2a60644b4a1d078b91 (patch)
tree2ac8d39706f50dae8917eb374bb2656f42baff9d /pkgs/development/libraries/libxc
parent0dd6bd214da0b3ec79400a2910a0ca0a580eccf8 (diff)
libxc: init at 2.2.3
Diffstat (limited to 'pkgs/development/libraries/libxc')
-rw-r--r--pkgs/development/libraries/libxc/default.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/development/libraries/libxc/default.nix b/pkgs/development/libraries/libxc/default.nix
new file mode 100644
index 0000000000000..1201151ebcec4
--- /dev/null
+++ b/pkgs/development/libraries/libxc/default.nix
@@ -0,0 +1,31 @@
+{ stdenv, fetchurl, gfortran, perl }:
+
+let
+  version = "2.2.3";
+in stdenv.mkDerivation {
+  name = "libxc-${version}";
+  src = fetchurl {
+    url = "http://www.tddft.org/programs/octopus/down.php?file=libxc/libxc-${version}.tar.gz";
+    sha256 = "1rv8vsf7zzw0g7j93rqcipzhk2pj1iq71bpkwf7zxivmgavh0arg";
+  };
+
+  buildInputs = [ gfortran ];
+  nativeBuildInputs = [ perl ];
+
+  preConfigure = ''
+    patchShebangs ./
+  '';
+
+  configureFlags = [ "--enable-shared" ];
+
+  doCheck = true;
+  enableParallelBuilding = true;
+
+  meta = with stdenv.lib; {
+    description = "Library of exchange-correlation functionals for density-functional theory";
+    homepage = http://octopus-code.org/wiki/Libxc;
+    license = licenses.lgpl3;
+    platforms = platforms.linux;
+    maintainer = with maintainers; [ markuskowa ];
+  };
+}