You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

51 lines
1.2 KiB

  1. { stdenv, fetchFromGitHub, unzip, openexr, boost, jemalloc, c-blosc, ilmbase, tbb }:
  2. stdenv.mkDerivation rec
  3. {
  4. pname = "openvdb";
  5. version = "7.0.0";
  6. src = fetchFromGitHub {
  7. owner = "dreamworksanimation";
  8. repo = "openvdb";
  9. rev = "v${version}";
  10. sha256 = "0hhs50f05hkgj1wni53cwbsx2bhn1aam6z65j133356gbid2carl";
  11. };
  12. outputs = [ "out" ];
  13. buildInputs = [ unzip openexr boost tbb jemalloc c-blosc ilmbase ];
  14. setSourceRoot = ''
  15. sourceRoot=$(echo */openvdb)
  16. '';
  17. installTargets = [ "install_lib" ];
  18. enableParallelBuilding = true;
  19. buildFlags = [
  20. "lib"
  21. "DESTDIR=$(out)"
  22. "HALF_LIB=-lHalf"
  23. "TBB_LIB=-ltbb"
  24. "BLOSC_LIB=-lblosc"
  25. "LOG4CPLUS_LIB="
  26. "BLOSC_INCLUDE_DIR=${c-blosc}/include/"
  27. "BLOSC_LIB_DIR=${c-blosc}/lib/"
  28. ];
  29. installFlags = [ "DESTDIR=$(out)" ];
  30. NIX_CFLAGS_COMPILE="-I${openexr.dev}/include/OpenEXR -I${ilmbase.dev}/include/OpenEXR/";
  31. NIX_LDFLAGS="-lboost_iostreams";
  32. meta = with stdenv.lib; {
  33. description = "An open framework for voxel";
  34. homepage = "https://www.openvdb.org";
  35. maintainers = [ maintainers.guibou ];
  36. platforms = platforms.linux;
  37. license = licenses.mpl20;
  38. };
  39. }