git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #127378 from sheepforce/xcfun

xcfun: init at 2.1.1

commit8f25adc3433e29875d249ed013dc780fa9c7b6c6 authorSandro <sandro.jaeckel@gmail.com> dateMon 21 Jun 2021, 11:48 (5 years ago) parentfdb42a7ec92453
2 files changed+32
pkgs/development/libraries/science/chemistry/xcfun/default.nix+30 pkgs/top-level/all-packages.nix+2
pkgs/development/libraries/science/chemistry/xcfun/default.nixnew file+30
@@ -0,0 +1,30 @@
1+{ stdenv, lib, fetchFromGitHub, cmake, gfortran, python3 } :
2+
3+stdenv.mkDerivation rec {
4+ pname = "xcfun";
5+ version = "2.1.1";
6+
7+ src = fetchFromGitHub {
8+ owner = "dftlibs";
9+ repo = pname;
10+ rev = "v${version}";
11+ sha256= "1bj70cnhbh6ziy02x988wwl7cbwaq17ld7qwhswqkgnnx8rpgxid";
12+ };
13+
14+ nativeBuildInputs = [
15+ cmake
16+ gfortran
17+ ];
18+
19+ propagatedBuildInputs = [ (python3.withPackages (p: with p; [ pybind11 ])) ];
20+
21+ cmakeFlags = [ "-DXCFUN_MAX_ORDER=3" ];
22+
23+ meta = with lib; {
24+ description = "A library of exchange-correlation functionals with arbitrary-order derivatives";
25+ homepage = "https://github.com/dftlibs/xcfun";
26+ license = licenses.mpl20;
27+ platforms = platforms.linux;
28+ maintainers = [ maintainers.sheepforce ];
29+ };
30+}
pkgs/top-level/all-packages.nix+2
@@ -31996,6 +31996,8 @@ in
3199631996
3199731997 xcolor = callPackage ../tools/graphics/xcolor { };
3199831998
31999+ xcfun = callPackage ../development/libraries/science/chemistry/xcfun { };
32000+
3199932001 zthrottle = callPackage ../tools/misc/zthrottle { };
3200032002
3200132003 zktree = callPackage ../applications/misc/zktree {};