at 24.11-pre 29 lines 812 B view raw
1{ lib, stdenv, fetchurl, cmake, blas, lapack, superlu, hdf5 }: 2 3stdenv.mkDerivation rec { 4 pname = "armadillo"; 5 version = "12.8.3"; 6 7 src = fetchurl { 8 url = "mirror://sourceforge/arma/armadillo-${version}.tar.xz"; 9 hash = "sha256-KSJYn2OHeWUEs0Daa7lUvvPYdXTCmFFYkyie3S2JAVE="; 10 }; 11 12 nativeBuildInputs = [ cmake ]; 13 buildInputs = [ blas lapack superlu hdf5 ]; 14 15 cmakeFlags = [ 16 "-DLAPACK_LIBRARY=${lapack}/lib/liblapack${stdenv.hostPlatform.extensions.sharedLibrary}" 17 "-DDETECT_HDF5=ON" 18 ]; 19 20 patches = [ ./use-unix-config-on-OS-X.patch ]; 21 22 meta = with lib; { 23 description = "C++ linear algebra library"; 24 homepage = "https://arma.sourceforge.net"; 25 license = licenses.asl20; 26 platforms = platforms.unix; 27 maintainers = with maintainers; [ juliendehos knedlsepp ]; 28 }; 29}