2013-12-27 21:14:42 +01:00
|
|
|
{ stdenv, fetchurl, gfortran, openblas }:
|
|
|
|
|
2014-03-02 01:46:53 +01:00
|
|
|
let version = "3.1.5";
|
2013-12-27 21:14:42 +01:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "arpack-${version}";
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://forge.scilab.org/index.php/p/arpack-ng/downloads/get/arpack-ng_${version}.tar.gz";
|
2014-03-02 01:46:53 +01:00
|
|
|
sha256 = "05fmg4m0yri47rzgsl2mnr1qbzrs7qyd557p3v9wwxxw0rwcwsd2";
|
2013-12-27 21:14:42 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ gfortran ];
|
|
|
|
propagatedBuildInputs = [ openblas ];
|
|
|
|
|
2014-03-02 01:46:53 +01:00
|
|
|
preConfigure = ''
|
|
|
|
substituteInPlace arpack.pc.in \
|
|
|
|
--replace "@BLAS_LIBS@" "-L${openblas}/lib @BLAS_LIBS@"
|
|
|
|
'';
|
|
|
|
|
2013-12-27 21:14:42 +01:00
|
|
|
# Auto-detection fails because gfortran brings in BLAS by default
|
|
|
|
configureFlags="--with-blas=-lopenblas --with-lapack=-lopenblas";
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "http://forge.scilab.org/index.php/p/arpack-ng/";
|
|
|
|
description = "A collection of Fortran77 subroutines to solve large scale eigenvalue problems";
|
|
|
|
platforms = stdenv.lib.platforms.all;
|
|
|
|
license = stdenv.lib.licenses.bsd3;
|
2014-03-07 18:20:18 +01:00
|
|
|
maintainers = [ stdenv.lib.maintainers.ttuegel ];
|
2013-12-27 21:14:42 +01:00
|
|
|
};
|
|
|
|
}
|