blob: 0534c7b46b033f9d9248127d4f8ee13064b31e65 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
{ stdenv, lib, fetchFromGitHub, cmake, gfortran, python3 } :
stdenv.mkDerivation rec {
pname = "xcfun";
version = "2.1.1";
src = fetchFromGitHub {
owner = "dftlibs";
repo = pname;
rev = "v${version}";
sha256 = "1bj70cnhbh6ziy02x988wwl7cbwaq17ld7qwhswqkgnnx8rpgxid";
};
nativeBuildInputs = [
cmake
gfortran
];
propagatedBuildInputs = [ (python3.withPackages (p: with p; [ pybind11 ])) ];
cmakeFlags = [ "-DXCFUN_MAX_ORDER=3" ];
meta = with lib; {
description = "A library of exchange-correlation functionals with arbitrary-order derivatives";
homepage = "https://github.com/dftlibs/xcfun";
license = licenses.mpl20;
platforms = platforms.unix;
maintainers = [ maintainers.sheepforce ];
};
}
|