2023-09-22 21:01:09 +01:00
|
|
|
{ lib
|
|
|
|
, cmake
|
|
|
|
, fetchFromGitHub
|
|
|
|
, ninja
|
|
|
|
, stdenv
|
|
|
|
, tbb
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
|
|
pname = "openpgl";
|
|
|
|
version = "0.5.0";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "OpenPathGuidingLibrary";
|
|
|
|
repo = finalAttrs.pname;
|
|
|
|
rev = "v${finalAttrs.version}";
|
|
|
|
hash = "sha256-dbHmGGiHQkU0KPpQYpY/o0uCWdb3L5namETdOcOREgs=";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
ninja
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
tbb
|
|
|
|
];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DOPENPGL_BUILD_STATIC=OFF"
|
|
|
|
"-DTBB_ROOT=${tbb.out}"
|
|
|
|
];
|
|
|
|
|
2023-10-13 19:53:13 +01:00
|
|
|
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isAarch64 "-flax-vector-conversions";
|
|
|
|
|
2023-09-22 21:01:09 +01:00
|
|
|
meta = {
|
|
|
|
description = "Intel Open Path Guiding Library";
|
|
|
|
homepage = "https://github.com/OpenPathGuidingLibrary/openpgl";
|
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
maintainers = [ lib.maintainers.amarshall ];
|
|
|
|
license = lib.licenses.asl20;
|
|
|
|
};
|
|
|
|
})
|