From fc9b47c5d5d5700f52d4cfdb586b43fcde0cac00 Mon Sep 17 00:00:00 2001 From: Mike Purvis Date: Thu, 29 Dec 2022 14:06:20 +0000 Subject: [PATCH] openvdb: refactor for split outputs --- pkgs/development/libraries/openvdb/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/development/libraries/openvdb/default.nix b/pkgs/development/libraries/openvdb/default.nix index f2b95bd07e3c..db5cbca180dc 100644 --- a/pkgs/development/libraries/openvdb/default.nix +++ b/pkgs/development/libraries/openvdb/default.nix @@ -5,6 +5,8 @@ stdenv.mkDerivation rec pname = "openvdb"; version = "9.1.0"; + outputs = [ "out" "dev" ]; + src = fetchFromGitHub { owner = "dreamworksanimation"; repo = "openvdb"; @@ -16,6 +18,14 @@ stdenv.mkDerivation rec 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";