libxc: 4.3.4 -> 5.1.0

master
Markus Kowalewski 2021-01-26 21:57:03 +01:00
parent c46b679be0
commit 308ee1ca11
No known key found for this signature in database
GPG Key ID: D865C8A91D7025EB
1 changed files with 16 additions and 9 deletions

View File

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