2022-07-07 13:03:23 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, openexr, boost, jemalloc, c-blosc, ilmbase, tbb }:
|
2017-09-17 20:42:14 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec
|
|
|
|
{
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "openvdb";
|
2023-01-03 16:06:17 +00:00
|
|
|
version = "10.0.1";
|
2017-09-17 20:42:14 +00:00
|
|
|
|
2022-12-29 14:06:20 +00:00
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
2017-09-17 20:42:14 +00:00
|
|
|
src = fetchFromGitHub {
|
2023-01-03 16:06:17 +00:00
|
|
|
owner = "AcademySoftwareFoundation";
|
2017-09-17 20:42:14 +00:00
|
|
|
repo = "openvdb";
|
|
|
|
rev = "v${version}";
|
2023-01-03 16:06:17 +00:00
|
|
|
sha256 = "sha256-kaf5gpGYVWinmnRwR/IafE1SJcwmP2psfe/UZdtH1Og=";
|
2017-09-17 20:42:14 +00:00
|
|
|
};
|
|
|
|
|
2022-07-07 13:03:23 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
2017-09-17 20:42:14 +00:00
|
|
|
|
2021-02-20 21:01:53 +00:00
|
|
|
buildInputs = [ openexr boost tbb jemalloc c-blosc ilmbase ];
|
2017-09-17 20:42:14 +00:00
|
|
|
|
2022-12-29 14:06:20 +00:00
|
|
|
cmakeFlags = [ "-DOPENVDB_CORE_STATIC=OFF" ];
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
substituteInPlace $dev/lib/cmake/OpenVDB/FindOpenVDB.cmake \
|
|
|
|
--replace \''${OPENVDB_LIBRARYDIR} $out/lib \
|
|
|
|
--replace \''${OPENVDB_INCLUDEDIR} $dev/include
|
|
|
|
'';
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2017-09-17 20:42:14 +00:00
|
|
|
description = "An open framework for voxel";
|
2019-04-22 08:14:28 +00:00
|
|
|
homepage = "https://www.openvdb.org";
|
2017-09-17 20:42:14 +00:00
|
|
|
maintainers = [ maintainers.guibou ];
|
2022-07-07 13:03:23 +00:00
|
|
|
platforms = platforms.unix;
|
2017-09-17 20:42:14 +00:00
|
|
|
license = licenses.mpl20;
|
|
|
|
};
|
|
|
|
}
|