mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 05:43:50 +03:00
openvdb: init at 4.0.2
This commit is contained in:
parent
afc6a8a259
commit
41b06c1519
47
pkgs/development/libraries/openvdb/default.nix
Normal file
47
pkgs/development/libraries/openvdb/default.nix
Normal file
@ -0,0 +1,47 @@
|
||||
{ stdenv, fetchFromGitHub, unzip, openexr, boost, jemalloc, c-blosc, ilmbase, tbb }:
|
||||
|
||||
stdenv.mkDerivation rec
|
||||
{
|
||||
name = "openvdb-${version}";
|
||||
version = "4.0.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "dreamworksanimation";
|
||||
repo = "openvdb";
|
||||
rev = "v${version}";
|
||||
sha256 = "0kqlsfa9rdpxpw7v61vfknvs11axh196ilqk6bnyyfkslmmcak45";
|
||||
};
|
||||
|
||||
outputs = [ "out" ];
|
||||
|
||||
buildInputs = [ unzip openexr boost tbb jemalloc c-blosc ilmbase ];
|
||||
|
||||
sourceRoot = "openvdb-v${version}-src/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;
|
||||
};
|
||||
}
|
@ -10058,6 +10058,8 @@ with pkgs;
|
||||
|
||||
openslp = callPackage ../development/libraries/openslp {};
|
||||
|
||||
openvdb = callPackage ../development/libraries/openvdb {};
|
||||
|
||||
inherit (callPackages ../development/libraries/libressl { })
|
||||
libressl_2_5
|
||||
libressl_2_6;
|
||||
|
Loading…
Reference in New Issue
Block a user