nixpkgs/pkgs/development/libraries/stxxl/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

45 lines
990 B
Nix
Raw Normal View History

2021-11-01 15:04:01 +00:00
{ lib
, stdenv
, fetchFromGitHub
, cmake
, parallelSupport ? (!stdenv.isDarwin)
2015-05-07 10:04:20 +00:00
}:
let
mkFlag = optset: flag: if optset then "-D${flag}=ON" else "-D${flag}=OFF";
in
stdenv.mkDerivation rec {
pname = "stxxl";
2015-05-07 10:04:20 +00:00
version = "1.4.1";
2021-11-01 15:04:01 +00:00
src = fetchFromGitHub {
owner = "stxxl";
repo = "stxxl";
rev = version;
sha256 = "sha256-U6DQ5mI83pyTmq5/ga5rI8v0h2/iEnNl8mxhIOpbF1I=";
};
2015-05-07 10:04:20 +00:00
nativeBuildInputs = [ cmake ];
2015-05-07 10:04:20 +00:00
cmakeFlags = [
"-DBUILD_SHARED_LIBS=ON"
"-DBUILD_STATIC_LIBS=OFF"
(mkFlag parallelSupport "USE_GNU_PARALLEL")
(mkFlag parallelSupport "USE_OPENMP")
2015-05-07 10:04:20 +00:00
];
passthru = {
inherit parallelSupport;
};
meta = with lib; {
2015-04-28 08:54:58 +00:00
description = "An implementation of the C++ standard template library STL for external memory (out-of-core) computations";
homepage = "https://github.com/stxxl/stxxl";
2015-05-07 10:04:20 +00:00
license = licenses.boost;
maintainers = with maintainers; [ ];
mainProgram = "stxxl_tool";
2015-05-07 10:04:20 +00:00
platforms = platforms.all;
};
}