Merge pull request #66884 from markuskowa/upd-octopus

octopus: 9.0 -> 9.1
This commit is contained in:
Marek Mahut 2019-08-19 11:53:01 +02:00 committed by GitHub
commit b8a9d33bcd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 14 deletions

View File

@ -1,27 +1,26 @@
{ stdenv, fetchurl, symlinkJoin, gfortran, perl, procps { stdenv, fetchFromGitLab, symlinkJoin, gfortran, perl, procps
, libyaml, libxc, fftw, openblas, gsl, netcdf, arpack , libyaml, libxc, fftw, openblas, gsl, netcdf, arpack, autoreconfHook
}: }:
let stdenv.mkDerivation rec {
version = "9.0"; pname = "octopus";
fftwAll = symlinkJoin { name ="ftw-dev-out"; paths = [ fftw.dev fftw.out ]; }; version = "9.1";
in stdenv.mkDerivation { src = fetchFromGitLab {
name = "octopus-${version}"; owner = "octopus-code";
repo = "octopus";
src = fetchurl { rev = version;
url = "http://www.tddft.org/programs/octopus/down.php?file=${version}/octopus-${version}.tar.gz"; sha256 = "1l5fqgllk7rij16q7a3la7qq6isy8a5n37vk400qcscw1v32s90h";
sha256 = "0p1gjykjnzm4m93mgjsmnxd0n2j381jk5kn3a7gkzxanixp60ilm";
}; };
nativeBuildInputs = [ perl procps fftw.dev ]; nativeBuildInputs = [ perl procps autoreconfHook ];
buildInputs = [ libyaml gfortran libxc openblas gsl fftw.out netcdf arpack ]; buildInputs = [ libyaml gfortran libxc openblas gsl fftw netcdf arpack ];
configureFlags = [ configureFlags = [
"--with-yaml-prefix=${libyaml}" "--with-yaml-prefix=${libyaml}"
"--with-blas=-lopenblas" "--with-blas=-lopenblas"
"--with-lapack=-lopenblas" "--with-lapack=-lopenblas"
"--with-fftw-prefix=${fftwAll}" "--with-fftw-prefix=${fftw.dev}"
"--with-gsl-prefix=${gsl}" "--with-gsl-prefix=${gsl}"
"--with-libxc-prefix=${libxc}" "--with-libxc-prefix=${libxc}"
]; ];