1 { lib, stdenv, fetchurl
6 # Memory Hierarchy (End-user can provide this.)
10 # RPC headers (rpc/xdr.h)
17 stdenv.mkDerivation rec {
22 url = "mirror://sourceforge/${pname}/${pname}-${version}.tar.gz";
23 sha256 = "sha256-7Enz94p8Q/yeEJdlk9EAqkmxhjMJ7Y+jzLt6rVLS97g=";
26 # The default configure flags are still present when building
27 # --disable-static --disable-dependency-tracking
28 # Along with the --prefix=... flag (but we want that one).
32 "--enable-octave-testing"
33 "--enable-sparse-blas-interface"
34 "--enable-fortran-module-install"
35 "--enable-pkg-config-install"
36 "--enable-matrix-types=all"
37 "--with-zlib=${zlib}/lib/libz.so"
38 "--with-memhinfo=${memHierarchy}"
41 # Ensure C/Fortran code is position-independent.
42 env.NIX_CFLAGS_COMPILE = toString [ "-fPIC" "-Ofast" ];
43 FCFLAGS = [ "-fPIC" "-Ofast" ];
45 enableParallelBuilding = true;
55 help2man # Turn "--help" into a man-page
56 doxygen # Build documentation
59 # Need to run cleanall target to remove any previously-generated files.
67 checkTarget = "tests";
70 homepage = "https://librsb.sourceforge.net/";
71 description = "Shared memory parallel sparse matrix and sparse BLAS library";
73 Library for sparse matrix computations featuring the Recursive Sparse
74 Blocks (RSB) matrix format. This format allows cache efficient and
75 multi-threaded (that is, shared memory parallel) operations on large
77 librsb implements the Sparse BLAS standard, as specified in the BLAS
79 Contains libraries and header files for developing applications that
80 want to make use of librsb.
82 license = with licenses; [ lgpl3Plus ];
83 maintainers = with maintainers; [ KarlJoad ];
84 platforms = platforms.all;
85 # ./rsb_common.h:56:10: fatal error: 'omp.h' file not found
86 broken = stdenv.isDarwin;