2022-07-14 12:49:19 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, openexr, boost, jemalloc, c-blosc, ilmbase, tbb }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec
|
|
|
|
{
|
|
|
|
pname = "openvdb";
|
2023-01-11 07:51:40 +00:00
|
|
|
version = "10.0.1";
|
|
|
|
|
|
|
|
outputs = [ "out" "dev" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2023-01-11 07:51:40 +00:00
|
|
|
owner = "AcademySoftwareFoundation";
|
2020-04-24 23:36:52 +00:00
|
|
|
repo = "openvdb";
|
|
|
|
rev = "v${version}";
|
2023-01-11 07:51:40 +00:00
|
|
|
sha256 = "sha256-kaf5gpGYVWinmnRwR/IafE1SJcwmP2psfe/UZdtH1Og=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-03-19 17:17:44 +00:00
|
|
|
buildInputs = [ openexr boost tbb jemalloc c-blosc ilmbase ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-01-11 07:51:40 +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-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "An open framework for voxel";
|
|
|
|
homepage = "https://www.openvdb.org";
|
|
|
|
maintainers = [ maintainers.guibou ];
|
2022-07-14 12:49:19 +00:00
|
|
|
platforms = platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mpl20;
|
|
|
|
};
|
|
|
|
}
|