Files
nixpkgs/pkgs/by-name/li/libvdwxc/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

65 lines
1.2 KiB
Nix

{
stdenv,
lib,
fetchFromGitLab,
gfortran,
autoreconfHook,
fftwMpi,
mpi,
}:
stdenv.mkDerivation {
pname = "libvdwxc";
# Stable version has non-working MPI detection.
version = "unstable-24.02.2020";
src = fetchFromGitLab {
owner = "libvdwxc";
repo = "libvdwxc";
rev = "92f4910c6ac88e111db2fb3a518089d0510c53b0";
sha256 = "1c7pjrvifncbdyngs2bv185imxbcbq64nka8gshhp8n2ns6fids6";
};
nativeBuildInputs = [
autoreconfHook
gfortran
];
buildInputs = [
mpi
fftwMpi
];
# Required for compilation with gcc-14
env.NIX_CFLAGS_COMPILE = "-Wno-error=incompatible-pointer-types";
preConfigure = ''
mkdir build && cd build
configureFlagsArray+=(
--with-mpi=${lib.getDev mpi}
CC=mpicc
FC=mpif90
MPICC=mpicc
MPIFC=mpif90
)
'';
configureScript = "../configure";
hardeningDisable = [ "format" ];
doCheck = true;
meta = with lib; {
description = "Portable C library of density functionals with van der Waals interactions for density functional theory";
license = with licenses; [
lgpl3Plus
bsd3
];
homepage = "https://libvdwxc.materialsmodeling.org/";
platforms = platforms.unix;
maintainers = [ maintainers.sheepforce ];
};
}