From 2e9af56306cfda79e4f67c2a60644b4a1d078b91 Mon Sep 17 00:00:00 2001 From: Markus Kowalewski Date: Sat, 30 Dec 2017 21:11:12 -0800 Subject: libxc: init at 2.2.3 --- pkgs/development/libraries/libxc/default.nix | 31 ++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 pkgs/development/libraries/libxc/default.nix (limited to 'pkgs/development/libraries/libxc') 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 ]; + }; +} -- cgit 1.4.1