tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
quantum-espresso: switch to fetchFromGitLab
Felix Buehler
4 years ago
64bac8e8
284c97a6
+18
-11
1 changed file
expand all
collapse all
unified
split
pkgs
applications
science
chemistry
quantum-espresso
default.nix
+18
-11
pkgs/applications/science/chemistry/quantum-espresso/default.nix
···
1
1
-
{ lib, stdenv, fetchurl
2
2
-
, gfortran, fftw, blas, lapack
1
1
+
{ lib
2
2
+
, stdenv
3
3
+
, fetchFromGitLab
4
4
+
, gfortran
5
5
+
, fftw
6
6
+
, blas
7
7
+
, lapack
3
8
, useMpi ? false
4
9
, mpi
5
10
}:
···
8
13
version = "6.6";
9
14
pname = "quantum-espresso";
10
15
11
11
-
src = fetchurl {
12
12
-
url = "https://gitlab.com/QEF/q-e/-/archive/qe-${version}/q-e-qe-${version}.tar.gz";
13
13
-
sha256 = "0b3718bwdqfyssyz25jknijar79qh5cf1bbizv9faliz135mcilj";
16
16
+
src = fetchFromGitLab {
17
17
+
owner = "QEF";
18
18
+
repo = "q-e";
19
19
+
rev = "qe-${version}";
20
20
+
sha256 = "1mkfmw0fq1dabplzdn6v1abhw0ds55gzlvbx3a9brv493whk21yp";
14
21
};
15
22
16
23
passthru = {
···
24
31
buildInputs = [ fftw blas lapack gfortran ]
25
32
++ (lib.optionals useMpi [ mpi ]);
26
33
27
27
-
configureFlags = if useMpi then [ "LD=${mpi}/bin/mpif90" ] else [ "LD=${gfortran}/bin/gfortran" ];
34
34
+
configureFlags = if useMpi then [ "LD=${mpi}/bin/mpif90" ] else [ "LD=${gfortran}/bin/gfortran" ];
28
35
29
36
makeFlags = [ "all" ];
30
37
31
38
meta = with lib; {
32
39
description = "Electronic-structure calculations and materials modeling at the nanoscale";
33
40
longDescription = ''
34
34
-
Quantum ESPRESSO is an integrated suite of Open-Source computer codes for
35
35
-
electronic-structure calculations and materials modeling at the
36
36
-
nanoscale. It is based on density-functional theory, plane waves, and
37
37
-
pseudopotentials.
38
38
-
'';
41
41
+
Quantum ESPRESSO is an integrated suite of Open-Source computer codes for
42
42
+
electronic-structure calculations and materials modeling at the
43
43
+
nanoscale. It is based on density-functional theory, plane waves, and
44
44
+
pseudopotentials.
45
45
+
'';
39
46
homepage = "https://www.quantum-espresso.org/";
40
47
license = licenses.gpl2;
41
48
platforms = [ "x86_64-linux" "x86_64-darwin" ];