6d4aeb4377
GitOrigin-RevId: 0f213d0fee84280d8c3a97f7469b988d6fe5fcdf
36 lines
945 B
Nix
36 lines
945 B
Nix
{ lib, stdenv, fetchFromGitHub, cmake, openexr, boost, jemalloc, c-blosc, ilmbase, tbb }:
|
|
|
|
stdenv.mkDerivation rec
|
|
{
|
|
pname = "openvdb";
|
|
version = "10.0.1";
|
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "AcademySoftwareFoundation";
|
|
repo = "openvdb";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-kaf5gpGYVWinmnRwR/IafE1SJcwmP2psfe/UZdtH1Og=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ openexr boost tbb jemalloc c-blosc ilmbase ];
|
|
|
|
cmakeFlags = [ "-DOPENVDB_CORE_STATIC=OFF" ];
|
|
|
|
postFixup = ''
|
|
substituteInPlace $dev/lib/cmake/OpenVDB/FindOpenVDB.cmake \
|
|
--replace \''${OPENVDB_LIBRARYDIR} $out/lib \
|
|
--replace \''${OPENVDB_INCLUDEDIR} $dev/include
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "An open framework for voxel";
|
|
homepage = "https://www.openvdb.org";
|
|
maintainers = [ maintainers.guibou ];
|
|
platforms = platforms.unix;
|
|
license = licenses.mpl20;
|
|
};
|
|
}
|