openvdb: refactor for split outputs

+10
+10
pkgs/development/libraries/openvdb/default.nix
··· 5 pname = "openvdb"; 6 version = "9.1.0"; 7 8 src = fetchFromGitHub { 9 owner = "dreamworksanimation"; 10 repo = "openvdb"; ··· 15 nativeBuildInputs = [ cmake ]; 16 17 buildInputs = [ openexr boost tbb jemalloc c-blosc ilmbase ]; 18 19 meta = with lib; { 20 description = "An open framework for voxel";
··· 5 pname = "openvdb"; 6 version = "9.1.0"; 7 8 + outputs = [ "out" "dev" ]; 9 + 10 src = fetchFromGitHub { 11 owner = "dreamworksanimation"; 12 repo = "openvdb"; ··· 17 nativeBuildInputs = [ cmake ]; 18 19 buildInputs = [ openexr boost tbb jemalloc c-blosc ilmbase ]; 20 + 21 + cmakeFlags = [ "-DOPENVDB_CORE_STATIC=OFF" ]; 22 + 23 + postFixup = '' 24 + substituteInPlace $dev/lib/cmake/OpenVDB/FindOpenVDB.cmake \ 25 + --replace \''${OPENVDB_LIBRARYDIR} $out/lib \ 26 + --replace \''${OPENVDB_INCLUDEDIR} $dev/include 27 + ''; 28 29 meta = with lib; { 30 description = "An open framework for voxel";