16 assert !blas.isILP64 && !lapack.isILP64;
18 stdenv.mkDerivation rec {
22 src = fetchFromGitHub {
26 hash = "sha256-VIV9953hx0MZupOARdH+P1h7JtZeJmTlqtO8si+lwdU=";
30 # Make sure fortran headers are installed directly in /include
31 ./fortran-module-dir.patch
34 nativeBuildInputs = [ gfortran meson ninja pkg-config python3 ];
36 buildInputs = [ blas lapack mctc-lib mstore multicharge ];
38 outputs = [ "out" "dev" ];
43 patchShebangs --build \
44 config/install-mod.py \
49 export OMP_NUM_THREADS=2
53 description = "Generally Applicable Atomic-Charge Dependent London Dispersion Correction";
54 mainProgram = "dftd4";
55 license = with licenses; [ lgpl3Plus gpl3Plus ];
56 homepage = "https://github.com/grimme-lab/dftd4";
57 platforms = platforms.linux;
58 maintainers = [ maintainers.sheepforce ];