1 { lib, stdenv, fetchFromGitLab, cmake, gfortran, perl }:
6 in stdenv.mkDerivation {
10 src = fetchFromGitLab {
14 sha256 = "1bcj7x0kaal62m41v9hxb4h1d2cxs2ynvsfqqg7c5yi7829nvapb";
17 buildInputs = [ gfortran ];
18 nativeBuildInputs = [ perl cmake ];
24 cmakeFlags = [ "-DENABLE_FORTRAN=ON" "-DBUILD_SHARED_LIBS=ON" ];
27 export LD_LIBRARY_PATH=$(pwd)
31 enableParallelBuilding = true;
34 description = "Library of exchange-correlation functionals for density-functional theory";
35 homepage = "https://www.tddft.org/programs/Libxc/";
36 license = licenses.mpl20;
37 platforms = [ "x86_64-linux" ];
38 maintainers = with maintainers; [ markuskowa ];