mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
arpack: build with openblas
This commit is contained in:
parent
e36b3ec0a5
commit
fff0191f48
1 changed files with 10 additions and 3 deletions
|
@ -1,4 +1,6 @@
|
|||
{ stdenv, fetchurl, gfortran, atlasWithLapack }:
|
||||
{ stdenv, fetchurl, gfortran, openblas }:
|
||||
|
||||
with stdenv.lib;
|
||||
|
||||
let
|
||||
version = "3.2.0";
|
||||
|
@ -10,10 +12,15 @@ stdenv.mkDerivation {
|
|||
sha256 = "1fwch6vipms1ispzg2djvbzv5wag36f1dmmr3xs3mbp6imfyhvff";
|
||||
};
|
||||
|
||||
buildInputs = [ gfortran atlasWithLapack ];
|
||||
buildInputs = [ gfortran openblas ];
|
||||
|
||||
# Auto-detection fails because gfortran brings in BLAS by default
|
||||
configureFlags="--with-blas=-latlas --with-lapack=-latlas";
|
||||
configureFlags = [
|
||||
"--with-blas=-lopenblas"
|
||||
"--with-lapack=-lopenblas"
|
||||
];
|
||||
|
||||
FFLAGS = optional openblas.blas64 "-fdefault-integer-8";
|
||||
|
||||
meta = {
|
||||
homepage = "http://forge.scilab.org/index.php/p/arpack-ng/";
|
||||
|
|
Loading…
Reference in a new issue