b5f92a349c
GitOrigin-RevId: 7c9cc5a6e5d38010801741ac830a3f8fd667a7a0
43 lines
856 B
Nix
43 lines
856 B
Nix
{ 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}"
|
|
];
|
|
|
|
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isAarch64 "-flax-vector-conversions";
|
|
|
|
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;
|
|
};
|
|
})
|