Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
59 lines
1.0 KiB
Nix
59 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
boost,
|
|
jemalloc,
|
|
c-blosc,
|
|
onetbb,
|
|
zlib,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "openvdb";
|
|
version = "12.1.0";
|
|
|
|
outputs = [
|
|
"out"
|
|
"dev"
|
|
];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "AcademySoftwareFoundation";
|
|
repo = "openvdb";
|
|
tag = "v${version}";
|
|
hash = "sha256-28vrIlruPl1tvw2JhjIAARtord45hqCqnA9UNnu4Z70=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [
|
|
boost
|
|
onetbb
|
|
jemalloc
|
|
c-blosc
|
|
zlib
|
|
];
|
|
|
|
cmakeFlags = [
|
|
"-DOPENVDB_CORE_STATIC=OFF"
|
|
"-DOPENVDB_BUILD_NANOVDB=ON"
|
|
];
|
|
|
|
postFixup = ''
|
|
substituteInPlace $dev/lib/cmake/OpenVDB/FindOpenVDB.cmake \
|
|
--replace \''${OPENVDB_LIBRARYDIR} $out/lib \
|
|
--replace \''${OPENVDB_INCLUDEDIR} $dev/include
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Open framework for voxel";
|
|
mainProgram = "vdb_print";
|
|
homepage = "https://www.openvdb.org";
|
|
maintainers = [ maintainers.guibou ];
|
|
platforms = platforms.unix;
|
|
license = licenses.asl20;
|
|
};
|
|
}
|