3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/science/chemistry/octopus/default.nix

51 lines
1.2 KiB
Nix
Raw Normal View History

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