openpgl: init at 0.5.0
Setting TBB_ROOT to the out path is necessary as otherwise the bundled FindTBB.cmake tries to search the `tbb.dev` output for the library files. Note that embree and nanoflann are bundled within the source. The build system is not currently setup to use non-vendored libs. Rebuilt 25 times to test reproducibility. Attempted a build on x86_64-darwin, and it failed, so marking this as linux only.
This commit is contained in:
parent
a45ba81da3
commit
b1460e25c5
1 changed files with 41 additions and 0 deletions
41
pkgs/by-name/op/openpgl/package.nix
Normal file
41
pkgs/by-name/op/openpgl/package.nix
Normal file
|
@ -0,0 +1,41 @@
|
|||
{ 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}"
|
||||
];
|
||||
|
||||
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;
|
||||
};
|
||||
})
|
Loading…
Reference in a new issue