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

49 lines
1.2 KiB
Nix
Raw Normal View History

{ stdenv, fetchFromGitLab, symlinkJoin, gfortran, perl, procps
, libyaml, libxc, fftw, openblas, gsl, netcdf, arpack, autoreconfHook
2018-01-21 01:24:24 +00:00
}:
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 openblas gsl fftw netcdf arpack ];
2018-01-21 01:24:24 +00:00
configureFlags = [
"--with-yaml-prefix=${libyaml}"
"--with-blas=-lopenblas"
"--with-lapack=-lopenblas"
"--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" ];
};
}