@@ -1,16 +1,16 @@
1−{ stdenv, fetchurl }:
1+{ stdenv, fetchFromGitHub }:
22
3−stdenv.mkDerivation {
4− name = "tbb-4.4-u2";
3+stdenv.mkDerivation rec {
4+ name = "tbb-${version}";
5+ version = "2018_U1";
56
6− src = fetchurl {
7− url = "https://www.threadingbuildingblocks.org/sites/default/files/software_releases/source/tbb44_20151115oss_src.tgz";
8− sha256 = "1fvprkjdxj7529hr1qkzkxkk18mx6zllrpiwglq4k3y1hpyc9m9x";
7+ src = fetchFromGitHub {
8+ owner = "01org";
9+ repo = "tbb";
10+ rev = version;
11+ sha256 = "1lygz07va6hsv2vlx9zwz5d2n81rxsdhmh0pqxgj8n1bvb1rp0qw";
912 };
1013
11− checkTarget = "test";
12− doCheck = false;
13−
1414 installPhase = ''
1515 mkdir -p $out/{lib,share/doc}
1616 cp "build/"*release*"/"*${stdenv.hostPlatform.extensions.sharedLibrary}* $out/lib/
@@ -21,10 +21,10 @@ stdenv.mkDerivation {
2121
2222 enableParallelBuilding = true;
2323
24− meta = {
24+ meta = with stdenv.lib; {
2525 description = "Intel Thread Building Blocks C++ Library";
26− homepage = http://threadingbuildingblocks.org/;
27− license = stdenv.lib.licenses.lgpl3Plus;
26+ homepage = "http://threadingbuildingblocks.org/";
27+ license = licenses.asl20;
2828 longDescription = ''
2929 Intel Threading Building Blocks offers a rich and complete approach to
3030 expressing parallelism in a C++ program. It is a library that helps you
@@ -33,7 +33,7 @@ stdenv.mkDerivation {
3333 represents a higher-level, task-based parallelism that abstracts platform
3434 details and threading mechanisms for scalability and performance.
3535 '';
36− platforms = with stdenv.lib.platforms; linux ++ darwin;
37− maintainers = with stdenv.lib.maintainers; [ peti thoughtpolice ];
36+ platforms = with platforms; linux ++ darwin;
37+ maintainers = with maintainers; [ peti thoughtpolice dizfer ];
3838 };
3939}