2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv, fetchFromGitLab, symlinkJoin, gfortran, perl, procps
|
|
|
|
, libyaml, libxc, fftw, blas, lapack, gsl, netcdf, arpack, autoreconfHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
assert (!blas.isILP64) && (!lapack.isILP64);
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "octopus";
|
2020-08-20 17:08:02 +00:00
|
|
|
version = "10.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "octopus-code";
|
|
|
|
repo = "octopus";
|
|
|
|
rev = version;
|
2020-08-20 17:08:02 +00:00
|
|
|
sha256 = "1c6q20y0x9aacwa7vp6gj3yvfzain7hnk6skxmvg3wazp02l91kn";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ perl procps autoreconfHook ];
|
|
|
|
buildInputs = [ libyaml gfortran libxc blas lapack gsl fftw netcdf arpack ];
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--with-yaml-prefix=${libyaml}"
|
|
|
|
"--with-blas=-lblas"
|
|
|
|
"--with-lapack=-llapack"
|
|
|
|
"--with-fftw-prefix=${fftw.dev}"
|
|
|
|
"--with-gsl-prefix=${gsl}"
|
|
|
|
"--with-libxc-prefix=${libxc}"
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
checkTarget = "check-short";
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
patchShebangs ./
|
|
|
|
'';
|
|
|
|
|
|
|
|
postConfigure = ''
|
|
|
|
patchShebangs testsuite/oct-run_testsuite.sh
|
|
|
|
'';
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Real-space time dependent density-functional theory code";
|
|
|
|
homepage = "https://octopus-code.org";
|
|
|
|
maintainers = with maintainers; [ markuskowa ];
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
}
|