1 { lib, stdenv, fetchurl, cmake, blas, lapack, superlu, hdf5 }:
3 stdenv.mkDerivation rec {
8 url = "mirror://sourceforge/arma/armadillo-${version}.tar.xz";
9 sha256 = "sha256-5oYBNPGsllbGoczHTHS3X4xZZqyGEoQfL78Mkc459Ok=";
12 nativeBuildInputs = [ cmake ];
13 buildInputs = [ blas lapack superlu hdf5 ];
16 "-DLAPACK_LIBRARY=${lapack}/lib/liblapack${stdenv.hostPlatform.extensions.sharedLibrary}"
20 patches = [ ./use-unix-config-on-OS-X.patch ];
23 description = "C++ linear algebra library";
24 homepage = "http://arma.sourceforge.net";
25 license = licenses.asl20;
26 platforms = platforms.unix;
27 maintainers = with maintainers; [ juliendehos knedlsepp ];