Skip to content

Commit d6426fb

Browse files
committed
greenx: initi at 2.2
1 parent 883f0b4 commit d6426fb

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

pkgs/by-name/gr/greenx/package.nix

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
stdenv,
3+
lib,
4+
fetchFromGitHub,
5+
gfortran,
6+
cmake,
7+
pkg-config,
8+
blas,
9+
lapack,
10+
}:
11+
12+
stdenv.mkDerivation rec {
13+
pname = "greenx";
14+
version = "2.2";
15+
16+
src = fetchFromGitHub {
17+
owner = "nomad-coe";
18+
repo = "greenx";
19+
rev = "v${version}";
20+
hash = "sha256-otIs2Y79KoEL4ut8YQe7Y27LpmpId8h/X8B6GIg8l+E=";
21+
};
22+
23+
nativeBuildInputs = [
24+
gfortran
25+
pkg-config
26+
cmake
27+
];
28+
29+
buildInputs = [
30+
blas
31+
lapack
32+
];
33+
34+
# Uses a hacky python setup run by cmake, which is hard to get running
35+
doCheck = false;
36+
37+
preCheck = ''
38+
export OMP_NUM_THREADS=2
39+
'';
40+
41+
meta = with lib; {
42+
description = "Library for Green’s function based electronic structure theory calculations";
43+
license = [ licenses.asl20 ];
44+
homepage = "https://github.com/nomad-coe/greenX";
45+
platforms = platforms.linux;
46+
maintainers = [ maintainers.sheepforce ];
47+
};
48+
}

0 commit comments

Comments
 (0)