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
938 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";
2022-07-07 13:03:23 +00:00
version = "9.1.0";
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 {
owner = "dreamworksanimation";
repo = "openvdb";
rev = "v${version}";
2022-07-07 13:03:23 +00:00
sha256 = "sha256-OP1xCR1YW60125mhhrW5+8/4uk+EBGIeoWGEU9OiIGY=";
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;
};
}