Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
43 lines
896 B
Nix
43 lines
896 B
Nix
{ lib
|
|
, cmake
|
|
, fetchFromGitHub
|
|
, ninja
|
|
, stdenv
|
|
, tbb
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "openpgl";
|
|
version = "0.7.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "OpenPathGuidingLibrary";
|
|
repo = "openpgl";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-HX3X1dmOazUUiYCqa6irpNm37YthB2YHb8u1P1qDHco=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
ninja
|
|
];
|
|
|
|
buildInputs = [
|
|
tbb
|
|
];
|
|
|
|
cmakeFlags = [
|
|
"-DOPENPGL_BUILD_STATIC=OFF"
|
|
"-DTBB_ROOT=${tbb.out}"
|
|
];
|
|
|
|
env.NIX_CFLAGS_COMPILE = lib.optionalString (stdenv.hostPlatform.isAarch64 && !stdenv.hostPlatform.isDarwin) "-flax-vector-conversions";
|
|
|
|
meta = {
|
|
description = "Intel Open Path Guiding Library";
|
|
homepage = "https://github.com/OpenPathGuidingLibrary/openpgl";
|
|
platforms = lib.platforms.unix;
|
|
maintainers = [ lib.maintainers.amarshall ];
|
|
license = lib.licenses.asl20;
|
|
};
|
|
})
|