91ca88b3e6
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/tbb/versions. These checks were done: - built on NixOS - 0 of 0 passed binary check by having a zero exit code. - 0 of 0 passed binary check by having the new version present in output. - found 2018_U4 with grep in /nix/store/bi7ml1lf51x1pvf8c9q9sg1vgyr93i10-tbb-2018_U4 - directory tree listing: https://gist.github.com/0b2f954042266f19cb4e819607e57c03 - du listing: https://gist.github.com/f115812285d438e3dc88112762777976
47 lines
1.6 KiB
Nix
47 lines
1.6 KiB
Nix
{ stdenv, fetchFromGitHub, compiler ? if stdenv.cc.isClang then "clang" else null, stdver ? null }:
|
|
|
|
with stdenv.lib; stdenv.mkDerivation rec {
|
|
name = "tbb-${version}";
|
|
version = "2018_U4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "01org";
|
|
repo = "tbb";
|
|
rev = version;
|
|
sha256 = "00y7b4x0blkn0cymnrbh6fw7kp4xcdp4bi14rj33sl1lypawa1j6";
|
|
};
|
|
|
|
makeFlags = concatStringsSep " " (
|
|
optional (compiler != null) "compiler=${compiler}" ++
|
|
optional (stdver != null) "stdver=${stdver}"
|
|
);
|
|
|
|
patches = stdenv.lib.optional stdenv.hostPlatform.isMusl ./glibc-struct-mallinfo.patch;
|
|
|
|
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 = {
|
|
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 ];
|
|
};
|
|
}
|