summary refs log tree commit diff
path: root/pkgs/development/libraries/stxxl/default.nix
blob: b387c59efa1335ca268bccbf6388ec37859acfad (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{stdenv, fetchurl, cmake, parallel ? true }:

stdenv.mkDerivation rec {
  name = "stxxl-1.4.1";

  src = fetchurl {
    url = "https://github.com/stxxl/stxxl/archive/1.4.1.tar.gz";
    sha256 = "54006a5fccd1435abc2f3ec201997a4d7dacddb984d2717f62191798e5372f6c";
  };

  buildInputs = [ cmake ];

  cmakeFlags = let parallel_str = if parallel then "ON" else "OFF"; in "-DUSE_GNU_PARALLEL=${parallel_str}";

  passthru = {
    inherit parallel;
  };

  meta = {
    homepage = https://github.com/stxxl/stxxl;
    description = "STXXL is an implementation of the C++ standard template library STL for external memory (out-of-core) computations.";
    license = stdenv.lib.licenses.boost;
  };
}