Merge pull request #110889 from markuskowa/upd-libxc5

libxc: 4.3.4 -> 5.1.0
This commit is contained in:
Sandro 2021-01-27 09:42:00 +01:00 committed by GitHub
commit e74fd33ada
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,32 +1,39 @@
{ lib, stdenv, fetchurl, gfortran, perl }: { lib, stdenv, fetchFromGitLab, cmake, gfortran, perl }:
let let
version = "4.3.4"; version = "5.1.0";
in stdenv.mkDerivation { in stdenv.mkDerivation {
pname = "libxc"; pname = "libxc";
inherit version; inherit version;
src = fetchurl {
url = "http://www.tddft.org/programs/octopus/down.php?file=libxc/${version}/libxc-${version}.tar.gz"; src = fetchFromGitLab {
sha256 = "0dw356dfwn2bwjdfwwi4h0kimm69aql2f4yk9f2kk4q7qpfkgvm8"; owner = "libxc";
repo = "libxc";
rev = version;
sha256 = "0qbxh0lfx4cab1fk1qfnx72g4yvs376zqrq74jn224vy32nam2x7";
}; };
buildInputs = [ gfortran ]; buildInputs = [ gfortran ];
nativeBuildInputs = [ perl ]; nativeBuildInputs = [ perl cmake ];
preConfigure = '' preConfigure = ''
patchShebangs ./ patchShebangs ./
''; '';
configureFlags = [ "--enable-shared" ]; cmakeFlags = [ "-DENABLE_FORTRAN=ON" "-DBUILD_SHARED_LIBS=ON" ];
preCheck = ''
export LD_LIBRARY_PATH=$(pwd)
'';
doCheck = true; doCheck = true;
enableParallelBuilding = true; enableParallelBuilding = true;
meta = with lib; { meta = with lib; {
description = "Library of exchange-correlation functionals for density-functional theory"; description = "Library of exchange-correlation functionals for density-functional theory";
homepage = "https://octopus-code.org/wiki/Libxc"; homepage = "https://www.tddft.org/programs/Libxc/";
license = licenses.lgpl3; license = licenses.mpl20;
platforms = [ "x86_64-linux" ]; platforms = [ "x86_64-linux" ];
maintainers = with maintainers; [ markuskowa ]; maintainers = with maintainers; [ markuskowa ];
}; };