nixpkgs/pkgs/development/libraries/openvdb/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
945 B
Nix
Raw Normal View History

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
{
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
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
'';
meta = with lib; {
2017-09-17 20:42:14 +00:00
description = "An open framework for voxel";
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;
};
}