2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, ispc, tbb, glfw,
|
2020-04-24 23:36:52 +00:00
|
|
|
openimageio, libjpeg, libpng, libpthreadstubs, libX11
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "embree";
|
|
|
|
version = "2.17.4";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "embree";
|
|
|
|
repo = "embree";
|
|
|
|
rev = "v2.17.4";
|
|
|
|
sha256 = "0q3r724r58j4b6cbyy657fsb78z7a2c7d5mwdp7552skynsn2mn9";
|
|
|
|
};
|
|
|
|
|
|
|
|
cmakeFlags = [ "-DEMBREE_TUTORIALS=OFF" ];
|
2021-01-15 22:18:51 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
|
|
|
buildInputs = [ ispc tbb glfw openimageio libjpeg libpng libX11 libpthreadstubs ];
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2021-01-15 22:18:51 +00:00
|
|
|
description = "High performance ray tracing kernels from Intel";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://embree.github.io/";
|
|
|
|
maintainers = with maintainers; [ hodapp ];
|
|
|
|
license = licenses.asl20;
|
2023-03-15 16:39:30 +00:00
|
|
|
platforms = [ "x86_64-linux" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|