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-03-03 09:54:23 +00:00
version = "9.2";
2018-01-21 01:24:24 +00:00
src = fetchFromGitLab {
owner = "octopus-code";
repo = "octopus";
rev = version;
2020-03-03 09:54:23 +00:00
sha256 = "083z51sjv70asr04rv53wb9gf4396nblq1zl22qw7jdr28hji4is";
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" ];
};
}