From abf222ad384304ce7477c8556571bc893c8f5a75 Mon Sep 17 00:00:00 2001 From: David Izquierdo Date: Sat, 21 Oct 2017 13:33:08 +0200 Subject: [PATCH] libtbb: init at 2018_U1 --- pkgs/development/libraries/libtbb/default.nix | 30 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 32 insertions(+) create mode 100644 pkgs/development/libraries/libtbb/default.nix diff --git a/pkgs/development/libraries/libtbb/default.nix b/pkgs/development/libraries/libtbb/default.nix new file mode 100644 index 000000000000..1422f6c5ceb9 --- /dev/null +++ b/pkgs/development/libraries/libtbb/default.nix @@ -0,0 +1,30 @@ +{ stdenv, fetchFromGitHub, tree }: + +stdenv.mkDerivation rec { + name = "libtbb-${version}"; + version = "2018_U1"; + + src = fetchFromGitHub { + owner = "01org"; + repo = "tbb"; + rev = "${version}"; + sha256 = "1lygz07va6hsv2vlx9zwz5d2n81rxsdhmh0pqxgj8n1bvb1rp0qw"; + }; + + buildInputs = [ tree ]; + + installPhase = '' + mkdir -p "$out"/usr/include "$out"/lib + install -m755 build/linux_*/*.so* "$out"/lib/ + cp -a include/tbb "$out"/usr/include/ + ''; + + meta = with stdenv.lib; { + homepage = "https://www.threadingbuildingblocks.org/"; + description = "High level abstract threading library"; + platforms = platforms.unix; + license = licenses.asl20; + maintainers = with maintainers; [ dizfer ]; + }; +} + diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index a0a2fe24a308..8b219f6be7c7 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3119,6 +3119,8 @@ with pkgs; libsrs2 = callPackage ../development/libraries/libsrs2 { }; + libtbb = callPackage ../development/libraries/libtbb { }; + libtermkey = callPackage ../development/libraries/libtermkey { }; libtelnet = callPackage ../development/libraries/libtelnet { };