nixpkgs/pkgs/development/libraries/openvdb/default.nix
Ryan Mulligan cbef2f6fbf openvdb: 4.0.2 -> 5.0.0
Semi-automatic update. These checks were performed:

- built on NixOS
- found 5.0.0 with grep in /nix/store/6shm8j674fk7290pb838wy9df9r42ydh-openvdb-5.0.0
- found 5.0.0 in filename of file in /nix/store/6shm8j674fk7290pb838wy9df9r42ydh-openvdb-5.0.0

cc "@guibou"
2018-03-04 17:39:49 +00:00

50 lines
1.1 KiB
Nix

{ stdenv, fetchFromGitHub, unzip, openexr, boost, jemalloc, c-blosc, ilmbase, tbb }:
stdenv.mkDerivation rec
{
name = "openvdb-${version}";
version = "5.0.0";
src = fetchFromGitHub {
owner = "dreamworksanimation";
repo = "openvdb";
rev = "v${version}";
sha256 = "162l1prgdyf571bgxc621gicl40b050ny64f0jmnhz0h5xq6sfrv";
};
outputs = [ "out" ];
buildInputs = [ unzip openexr boost tbb jemalloc c-blosc ilmbase ];
setSourceRoot = ''
sourceRoot=$(echo */openvdb)
'';
installTargets = "install_lib";
enableParallelBuilding = true;
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)'';
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 = "http://www.openvdb.org";
maintainers = [ maintainers.guibou ];
platforms = platforms.all;
license = licenses.mpl20;
};
}