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