arpack: version 3.1.5, fix pkgconfig
This commit is contained in:
parent
e38341fee2
commit
2bd2747a50
@ -1,17 +1,22 @@
|
|||||||
{ stdenv, fetchurl, gfortran, openblas }:
|
{ stdenv, fetchurl, gfortran, openblas }:
|
||||||
|
|
||||||
let version = "3.1.4";
|
let version = "3.1.5";
|
||||||
in
|
in
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "arpack-${version}";
|
name = "arpack-${version}";
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://forge.scilab.org/index.php/p/arpack-ng/downloads/get/arpack-ng_${version}.tar.gz";
|
url = "http://forge.scilab.org/index.php/p/arpack-ng/downloads/get/arpack-ng_${version}.tar.gz";
|
||||||
sha256 = "0m4cqy3d7fpzx1nac3brhr298qj7vx3fchjdz5b7n0pp616cmcm1";
|
sha256 = "05fmg4m0yri47rzgsl2mnr1qbzrs7qyd557p3v9wwxxw0rwcwsd2";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ gfortran ];
|
buildInputs = [ gfortran ];
|
||||||
propagatedBuildInputs = [ openblas ];
|
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=-lopenblas --with-lapack=-lopenblas";
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user