nav: init at 1.2.1 (#356071)
[NixPkgs.git] / pkgs / by-name / xc / xcfun / package.nix
blob72e5a0172580a46e5213604f4528b02c95bc610d
2   stdenv,
3   lib,
4   fetchFromGitHub,
5   cmake,
6   gfortran,
7   python3,
8 }:
10 stdenv.mkDerivation rec {
11   pname = "xcfun";
12   version = "2.1.1";
14   src = fetchFromGitHub {
15     owner = "dftlibs";
16     repo = pname;
17     rev = "v${version}";
18     sha256 = "1bj70cnhbh6ziy02x988wwl7cbwaq17ld7qwhswqkgnnx8rpgxid";
19   };
21   nativeBuildInputs = [
22     cmake
23     gfortran
24   ];
26   propagatedBuildInputs = [ (python3.withPackages (p: with p; [ pybind11 ])) ];
28   cmakeFlags = [ "-DXCFUN_MAX_ORDER=3" ];
30   meta = with lib; {
31     description = "Library of exchange-correlation functionals with arbitrary-order derivatives";
32     homepage = "https://github.com/dftlibs/xcfun";
33     license = licenses.mpl20;
34     platforms = platforms.unix;
35     maintainers = [ maintainers.sheepforce ];
36   };