git.iko.soy/typeable/nixpkgs
on master help sign in
openvdb: init at 4.0.2
commit41b06c1519533a51e356c6d53b0005ba21c1c901 authorGuillaume Bouchard <guillaum.bouchard@gmail.com> dateSun 17 Sep 2017, 22:42 (9 years ago) parentafc6a8a
2 files changed+49
pkgs/development/libraries/openvdb/default.nix+47 pkgs/top-level/all-packages.nix+2
pkgs/development/libraries/openvdb/default.nixnew file+47
@@ -0,0 +1,47 @@
1+{ stdenv, fetchFromGitHub, unzip, openexr, boost, jemalloc, c-blosc, ilmbase, tbb }:
2+
3+stdenv.mkDerivation rec
4+{
5+ name = "openvdb-${version}";
6+ version = "4.0.2";
7+
8+ src = fetchFromGitHub {
9+ owner = "dreamworksanimation";
10+ repo = "openvdb";
11+ rev = "v${version}";
12+ sha256 = "0kqlsfa9rdpxpw7v61vfknvs11axh196ilqk6bnyyfkslmmcak45";
13+ };
14+
15+ outputs = [ "out" ];
16+
17+ buildInputs = [ unzip openexr boost tbb jemalloc c-blosc ilmbase ];
18+
19+ sourceRoot = "openvdb-v${version}-src/openvdb";
20+
21+ installTargets = "install_lib";
22+
23+ enableParallelBuilding = true;
24+
25+ buildFlags = ''lib
26+ DESTDIR=$(out)
27+ HALF_LIB=-lHalf
28+ TBB_LIB=-ltbb
29+ BLOSC_LIB=-lblosc
30+ LOG4CPLUS_LIB=
31+ BLOSC_INCLUDE_DIR=${c-blosc}/include/
32+ BLOSC_LIB_DIR=${c-blosc}/lib/
33+ '';
34+
35+ installFlags = ''DESTDIR=$(out)'';
36+
37+ NIX_CFLAGS_COMPILE="-I${openexr.dev}/include/OpenEXR -I${ilmbase.dev}/include/OpenEXR/";
38+ NIX_LDFLAGS="-lboost_iostreams";
39+
40+ meta = with stdenv.lib; {
41+ description = "An open framework for voxel";
42+ homepage = "http://www.openvdb.org";
43+ maintainers = [ maintainers.guibou ];
44+ platforms = platforms.all;
45+ license = licenses.mpl20;
46+ };
47+}
pkgs/top-level/all-packages.nix+2
@@ -10058,6 +10058,8 @@ with pkgs;
1005810058
1005910059 openslp = callPackage ../development/libraries/openslp {};
1006010060
10061+ openvdb = callPackage ../development/libraries/openvdb {};
10062+
1006110063 inherit (callPackages ../development/libraries/libressl { })
1006210064 libressl_2_5
1006310065 libressl_2_6;