lol

Merge pull request #14353 from acowley/tbb

tbb: darwin compatibility

joachifm b70f9dc1 a2aec04a

+5 -2
+5 -2
pkgs/development/libraries/tbb/default.nix
··· 1 1 { stdenv, fetchurl }: 2 2 3 + let 4 + SHLIB_EXT = if stdenv.isDarwin then "dylib" else "so"; 5 + in 3 6 stdenv.mkDerivation { 4 7 name = "tbb-4.4-u2"; 5 8 ··· 13 16 14 17 installPhase = '' 15 18 mkdir -p $out/{lib,share/doc} 16 - cp "build/"*release*"/"*so* $out/lib/ 19 + cp "build/"*release*"/"*${SHLIB_EXT}* $out/lib/ 17 20 mv include $out/ 18 21 rm $out/include/index.html 19 22 mv doc/html $out/share/doc/tbb ··· 33 36 represents a higher-level, task-based parallelism that abstracts platform 34 37 details and threading mechanisms for scalability and performance. 35 38 ''; 36 - platforms = stdenv.lib.platforms.linux; 39 + platforms = with stdenv.lib.platforms; linux ++ darwin; 37 40 maintainers = with stdenv.lib.maintainers; [ simons thoughtpolice ]; 38 41 }; 39 42 }