10 stdenv.mkDerivation rec {
12 # Stable version has non-working MPI detection.
13 version = "unstable-24.02.2020";
15 src = fetchFromGitLab {
18 rev = "92f4910c6ac88e111db2fb3a518089d0510c53b0";
19 sha256 = "1c7pjrvifncbdyngs2bv185imxbcbq64nka8gshhp8n2ns6fids6";
22 nativeBuildInputs = [ autoreconfHook gfortran ];
24 buildInputs = [ mpi fftwMpi ];
27 mkdir build && cd build
29 export PATH=$PATH:${mpi}/bin
30 configureFlagsArray+=(
31 --with-mpi=${lib.getDev mpi}
39 configureScript = "../configure";
41 hardeningDisable = [ "format" ];
46 description = "Portable C library of density functionals with van der Waals interactions for density functional theory";
47 license = with licenses; [ lgpl3Plus bsd3 ];
48 homepage = "https://libvdwxc.org/";
49 platforms = platforms.unix;
50 maintainers = [ maintainers.sheepforce ];