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