nixpkgs/pkgs/development/libraries/tbb/default.nix
Nikolay Amiantov c9ac187c3c tbb: 4.4-u2 -> 2018_U1, merge with libtbb
Remove libtbb derivation as a duplicate.
2017-10-29 01:51:11 +03:00

40 lines
1.3 KiB
Nix

{ stdenv, fetchFromGitHub }:
stdenv.mkDerivation rec {
name = "tbb-${version}";
version = "2018_U1";
src = fetchFromGitHub {
owner = "01org";
repo = "tbb";
rev = version;
sha256 = "1lygz07va6hsv2vlx9zwz5d2n81rxsdhmh0pqxgj8n1bvb1rp0qw";
};
installPhase = ''
mkdir -p $out/{lib,share/doc}
cp "build/"*release*"/"*${stdenv.hostPlatform.extensions.sharedLibrary}* $out/lib/
mv include $out/
rm $out/include/index.html
mv doc/html $out/share/doc/tbb
'';
enableParallelBuilding = true;
meta = with stdenv.lib; {
description = "Intel Thread Building Blocks C++ Library";
homepage = "http://threadingbuildingblocks.org/";
license = licenses.asl20;
longDescription = ''
Intel Threading Building Blocks offers a rich and complete approach to
expressing parallelism in a C++ program. It is a library that helps you
take advantage of multi-core processor performance without having to be a
threading expert. Intel TBB is not just a threads-replacement library. It
represents a higher-level, task-based parallelism that abstracts platform
details and threading mechanisms for scalability and performance.
'';
platforms = with platforms; linux ++ darwin;
maintainers = with maintainers; [ peti thoughtpolice dizfer ];
};
}