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

51 lines
1.2 KiB
Nix
Raw Normal View History

2017-09-17 23:42:14 +03:00
{ stdenv, fetchFromGitHub, unzip, openexr, boost, jemalloc, c-blosc, ilmbase, tbb }:
stdenv.mkDerivation rec
{
pname = "openvdb";
2020-04-15 08:29:17 +03:00
version = "7.0.0";
2017-09-17 23:42:14 +03:00
src = fetchFromGitHub {
owner = "dreamworksanimation";
repo = "openvdb";
rev = "v${version}";
2020-04-15 08:29:17 +03:00
sha256 = "0hhs50f05hkgj1wni53cwbsx2bhn1aam6z65j133356gbid2carl";
2017-09-17 23:42:14 +03:00
};
outputs = [ "out" ];
buildInputs = [ unzip openexr boost tbb jemalloc c-blosc ilmbase ];
setSourceRoot = ''
sourceRoot=$(echo */openvdb)
'';
2017-09-17 23:42:14 +03:00
2019-10-30 01:21:22 +03:00
installTargets = [ "install_lib" ];
2017-09-17 23:42:14 +03:00
enableParallelBuilding = true;
2019-10-30 01:21:22 +03:00
buildFlags = [
"lib"
"DESTDIR=$(out)"
"HALF_LIB=-lHalf"
"TBB_LIB=-ltbb"
"BLOSC_LIB=-lblosc"
"LOG4CPLUS_LIB="
"BLOSC_INCLUDE_DIR=${c-blosc}/include/"
"BLOSC_LIB_DIR=${c-blosc}/lib/"
];
installFlags = [ "DESTDIR=$(out)" ];
2017-09-17 23:42:14 +03:00
NIX_CFLAGS_COMPILE="-I${openexr.dev}/include/OpenEXR -I${ilmbase.dev}/include/OpenEXR/";
NIX_LDFLAGS="-lboost_iostreams";
meta = with stdenv.lib; {
description = "An open framework for voxel";
homepage = "https://www.openvdb.org";
2017-09-17 23:42:14 +03:00
maintainers = [ maintainers.guibou ];
2018-03-24 02:16:15 +03:00
platforms = platforms.linux;
2017-09-17 23:42:14 +03:00
license = licenses.mpl20;
};
}