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";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "12.8.4";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/arma/armadillo-${version}.tar.xz";
|
2024-06-05 15:53:02 +00:00
|
|
|
hash = "sha256-VY/lJrmQoWY2eO/zr27JP3nuEoyBpMiu8nrTKPrmETg=";
|
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";
|
2023-02-22 10:55:15 +00:00
|
|
|
homepage = "https://arma.sourceforge.net";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ juliendehos knedlsepp ];
|
|
|
|
};
|
|
|
|
}
|