2017-12-31 06:11:12 +01:00
|
|
|
{ stdenv, fetchurl, gfortran, perl }:
|
|
|
|
|
|
|
|
let
|
2019-03-28 18:00:23 +01:00
|
|
|
version = "4.3.4";
|
2018-01-26 05:36:48 +01:00
|
|
|
|
2017-12-31 06:11:12 +01:00
|
|
|
in stdenv.mkDerivation {
|
2019-08-13 23:52:01 +02:00
|
|
|
pname = "libxc";
|
|
|
|
inherit version;
|
2017-12-31 06:11:12 +01:00
|
|
|
src = fetchurl {
|
2018-01-26 05:36:48 +01:00
|
|
|
url = "http://www.tddft.org/programs/octopus/down.php?file=libxc/${version}/libxc-${version}.tar.gz";
|
2019-03-28 18:00:23 +01:00
|
|
|
sha256 = "0dw356dfwn2bwjdfwwi4h0kimm69aql2f4yk9f2kk4q7qpfkgvm8";
|
2017-12-31 06:11:12 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
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";
|
2019-04-15 01:25:45 +02:00
|
|
|
homepage = https://octopus-code.org/wiki/Libxc;
|
2017-12-31 06:11:12 +01:00
|
|
|
license = licenses.lgpl3;
|
2018-01-26 22:40:06 +01:00
|
|
|
platforms = [ "x86_64-linux" ];
|
2017-12-31 07:52:39 +01:00
|
|
|
maintainers = with maintainers; [ markuskowa ];
|
2017-12-31 06:11:12 +01:00
|
|
|
};
|
|
|
|
}
|