mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 21:53:32 +00:00
46420bbaa3
treewide replacement of stdenv.mkDerivation rec { name = "*-${version}"; version = "*"; to pname
50 lines
1.1 KiB
Nix
50 lines
1.1 KiB
Nix
{ stdenv, fetchFromGitHub, unzip, openexr, boost, jemalloc, c-blosc, ilmbase, tbb }:
|
|
|
|
stdenv.mkDerivation rec
|
|
{
|
|
pname = "openvdb";
|
|
version = "6.1.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "dreamworksanimation";
|
|
repo = "openvdb";
|
|
rev = "v${version}";
|
|
sha256 = "0rs50741c4m0jgc7k2fdyinvm7hhjrbg0wls6whqaghbbaf1lhpk";
|
|
};
|
|
|
|
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 = "https://www.openvdb.org";
|
|
maintainers = [ maintainers.guibou ];
|
|
platforms = platforms.linux;
|
|
license = licenses.mpl20;
|
|
};
|
|
}
|