tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
greenx: initi at 2.2
Phillip Seeber
5 months ago
d6426fb7
883f0b4a
+48
1 changed file
expand all
collapse all
unified
split
pkgs
by-name
gr
greenx
package.nix
+48
pkgs/by-name/gr/greenx/package.nix
···
1
1
+
{
2
2
+
stdenv,
3
3
+
lib,
4
4
+
fetchFromGitHub,
5
5
+
gfortran,
6
6
+
cmake,
7
7
+
pkg-config,
8
8
+
blas,
9
9
+
lapack,
10
10
+
}:
11
11
+
12
12
+
stdenv.mkDerivation rec {
13
13
+
pname = "greenx";
14
14
+
version = "2.2";
15
15
+
16
16
+
src = fetchFromGitHub {
17
17
+
owner = "nomad-coe";
18
18
+
repo = "greenx";
19
19
+
rev = "v${version}";
20
20
+
hash = "sha256-otIs2Y79KoEL4ut8YQe7Y27LpmpId8h/X8B6GIg8l+E=";
21
21
+
};
22
22
+
23
23
+
nativeBuildInputs = [
24
24
+
gfortran
25
25
+
pkg-config
26
26
+
cmake
27
27
+
];
28
28
+
29
29
+
buildInputs = [
30
30
+
blas
31
31
+
lapack
32
32
+
];
33
33
+
34
34
+
# Uses a hacky python setup run by cmake, which is hard to get running
35
35
+
doCheck = false;
36
36
+
37
37
+
preCheck = ''
38
38
+
export OMP_NUM_THREADS=2
39
39
+
'';
40
40
+
41
41
+
meta = with lib; {
42
42
+
description = "Library for Green’s function based electronic structure theory calculations";
43
43
+
license = [ licenses.asl20 ];
44
44
+
homepage = "https://github.com/nomad-coe/greenX";
45
45
+
platforms = platforms.linux;
46
46
+
maintainers = [ maintainers.sheepforce ];
47
47
+
};
48
48
+
}