Merge pull request #98501 from doronbehar/pkg/octave/arpack
This commit is contained in:
commit
60b4b396e5
|
@ -1,14 +1,9 @@
|
||||||
{ stdenv, fetchFromGitHub, cmake
|
{ stdenv, fetchFromGitHub, cmake
|
||||||
, gfortran, blas, lapack, eigen }:
|
, gfortran, blas, lapack, eigen }:
|
||||||
|
|
||||||
with stdenv.lib;
|
stdenv.mkDerivation rec {
|
||||||
|
|
||||||
let
|
|
||||||
version = "3.7.0";
|
|
||||||
in
|
|
||||||
stdenv.mkDerivation {
|
|
||||||
pname = "arpack";
|
pname = "arpack";
|
||||||
inherit version;
|
version = "3.7.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "opencollab";
|
owner = "opencollab";
|
||||||
|
@ -18,16 +13,18 @@ stdenv.mkDerivation {
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake ];
|
nativeBuildInputs = [ cmake ];
|
||||||
buildInputs = [ gfortran blas lapack eigen ];
|
buildInputs = assert (blas.isILP64 == lapack.isILP64); [
|
||||||
|
gfortran
|
||||||
|
blas
|
||||||
|
lapack
|
||||||
|
eigen
|
||||||
|
];
|
||||||
|
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
|
|
||||||
BLAS_LIBS = "-L${blas}/lib -lblas";
|
|
||||||
LAPACK_LIBS = "-L${lapack}/lib -llapack";
|
|
||||||
|
|
||||||
cmakeFlags = [
|
cmakeFlags = [
|
||||||
"-DBUILD_SHARED_LIBS=ON"
|
"-DBUILD_SHARED_LIBS=ON"
|
||||||
"-DINTERFACE64=${optionalString blas.isILP64 "1"}"
|
"-DINTERFACE64=${stdenv.lib.optionalString blas.isILP64 "1"}"
|
||||||
];
|
];
|
||||||
|
|
||||||
preCheck = if stdenv.isDarwin then ''
|
preCheck = if stdenv.isDarwin then ''
|
||||||
|
|
Loading…
Reference in New Issue