arpack: build against atlasWithLapack
This commit is contained in:
parent
893f277bd7
commit
81c0f94d74
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl, gfortran, openblas }:
|
{ stdenv, fetchurl, gfortran, atlasWithLapack }:
|
||||||
|
|
||||||
let
|
let
|
||||||
version = "3.2.0";
|
version = "3.2.0";
|
||||||
@ -10,23 +10,17 @@ stdenv.mkDerivation {
|
|||||||
sha256 = "1fwch6vipms1ispzg2djvbzv5wag36f1dmmr3xs3mbp6imfyhvff";
|
sha256 = "1fwch6vipms1ispzg2djvbzv5wag36f1dmmr3xs3mbp6imfyhvff";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ gfortran ];
|
buildInputs = [ gfortran atlasWithLapack ];
|
||||||
propagatedBuildInputs = [ openblas ];
|
|
||||||
|
|
||||||
preConfigure = ''
|
|
||||||
substituteInPlace arpack.pc.in \
|
|
||||||
--replace "@BLAS_LIBS@" "-L${openblas}/lib @BLAS_LIBS@"
|
|
||||||
'';
|
|
||||||
|
|
||||||
# Auto-detection fails because gfortran brings in BLAS by default
|
# Auto-detection fails because gfortran brings in BLAS by default
|
||||||
configureFlags="--with-blas=-lopenblas --with-lapack=-lopenblas";
|
configureFlags="--with-blas=-latlas --with-lapack=-latlas";
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = "http://forge.scilab.org/index.php/p/arpack-ng/";
|
homepage = "http://forge.scilab.org/index.php/p/arpack-ng/";
|
||||||
description = "A collection of Fortran77 subroutines to solve large scale eigenvalue problems";
|
description = ''
|
||||||
# Looks like OpenBLAS is not that easy to build
|
A collection of Fortran77 subroutines to solve large scale eigenvalue
|
||||||
# there is a sgemm_itcopy undefined reference on 32-bit, for example
|
problems.
|
||||||
platforms = ["x86_64-linux"];
|
'';
|
||||||
license = stdenv.lib.licenses.bsd3;
|
license = stdenv.lib.licenses.bsd3;
|
||||||
maintainers = [ stdenv.lib.maintainers.ttuegel ];
|
maintainers = [ stdenv.lib.maintainers.ttuegel ];
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user