2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, cmake, blas, lapack, superlu, hdf5 }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "armadillo";
|
2021-05-03 20:48:10 +00:00
|
|
|
version = "10.4.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/arma/armadillo-${version}.tar.xz";
|
2021-05-03 20:48:10 +00:00
|
|
|
sha256 = "sha256-5aRR4FXeX4sEhKzVyrLsXbrW3ihze1zHJRDYkuxppYA=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ blas lapack superlu hdf5 ];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DLAPACK_LIBRARY=${lapack}/lib/liblapack${stdenv.hostPlatform.extensions.sharedLibrary}"
|
|
|
|
"-DDETECT_HDF5=ON"
|
|
|
|
];
|
|
|
|
|
|
|
|
patches = [ ./use-unix-config-on-OS-X.patch ];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "C++ linear algebra library";
|
|
|
|
homepage = "http://arma.sourceforge.net";
|
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ juliendehos knedlsepp ];
|
|
|
|
};
|
|
|
|
}
|