2018-09-11 20:41:17 +00:00
|
|
|
{ stdenv, fetchurl
|
|
|
|
, gfortran, fftw, openblas
|
|
|
|
, mpi ? null
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-04-02 22:30:36 +00:00
|
|
|
version = "6.4";
|
2018-09-11 20:41:17 +00:00
|
|
|
name = "quantum-espresso-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://gitlab.com/QEF/q-e/-/archive/qe-${version}/q-e-qe-${version}.tar.gz";
|
2019-04-02 22:30:36 +00:00
|
|
|
sha256 = "1zjblzf0xzwmhmpjm56xvv8wsv5jmp5a204irzyicmd77p86c4vq";
|
2018-09-11 20:41:17 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
inherit mpi;
|
|
|
|
};
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
patchShebangs configure
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [ fftw openblas gfortran ]
|
|
|
|
++ (stdenv.lib.optionals (mpi != null) [ mpi ]);
|
|
|
|
|
|
|
|
configureFlags = if (mpi != null) then [ "LD=${mpi}/bin/mpif90" ] else [ "LD=${gfortran}/bin/gfortran" ];
|
|
|
|
|
|
|
|
makeFlags = [ "all" ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Electronic-structure calculations and materials modeling at the nanoscale";
|
|
|
|
longDescription = ''
|
|
|
|
Quantum ESPRESSO is an integrated suite of Open-Source computer codes for
|
|
|
|
electronic-structure calculations and materials modeling at the
|
|
|
|
nanoscale. It is based on density-functional theory, plane waves, and
|
|
|
|
pseudopotentials.
|
|
|
|
'';
|
|
|
|
homepage = https://www.quantum-espresso.org/;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|