5 , parallelSupport ? (!stdenv.isDarwin)
9 mkFlag = optset: flag: if optset then "-D${flag}=ON" else "-D${flag}=OFF";
12 stdenv.mkDerivation rec {
16 src = fetchFromGitHub {
20 sha256 = "sha256-U6DQ5mI83pyTmq5/ga5rI8v0h2/iEnNl8mxhIOpbF1I=";
23 nativeBuildInputs = [ cmake ];
26 "-DBUILD_SHARED_LIBS=ON"
27 "-DBUILD_STATIC_LIBS=OFF"
28 (mkFlag parallelSupport "USE_GNU_PARALLEL")
29 (mkFlag parallelSupport "USE_OPENMP")
33 inherit parallelSupport;
37 description = "An implementation of the C++ standard template library STL for external memory (out-of-core) computations";
38 homepage = "https://github.com/stxxl/stxxl";
39 license = licenses.boost;
40 maintainers = with maintainers; [ ];
41 mainProgram = "stxxl_tool";
42 platforms = platforms.all;