git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #30503 from guibou/guibou_vfx_pkgs

Many packages used in computer animation industry

commitd854b3df2ce1db11939cb1cb0ac822cbdfc3d25f authorFrederik Rietdijk <freddyrietdijk@fridh.nl> dateThu 19 Oct 2017, 15:38 (9 years ago) parent0d5ff5341b06c1
9 files changed+327
lib/maintainers.nix+1 pkgs/development/libraries/alembic/default.nix+47 pkgs/development/libraries/openexrid-unstable/default.nix+50 pkgs/development/libraries/openexrid-unstable/openexrid.patch+35 pkgs/development/libraries/openfx/default.nix+38 pkgs/development/libraries/openvdb/default.nix+47 pkgs/development/libraries/partio/default.nix+52 pkgs/development/libraries/ptex/default.nix+45 pkgs/top-level/all-packages.nix+12
lib/maintainers.nix+1
@@ -248,6 +248,7 @@
248248 grburst = "Julius Elias <grburst@openmailbox.org>";
249249 gridaphobe = "Eric Seidel <eric@seidel.io>";
250250 guibert = "David Guibert <david.guibert@gmail.com>";
251+ guibou = "Guillaume Bouchard <guillaum.bouchard@gmail.com>";
251252 guillaumekoenig = "Guillaume Koenig <guillaume.edward.koenig@gmail.com>";
252253 guyonvarch = "Joris Guyonvarch <joris@guyonvarch.me>";
253254 hakuch = "Jesse Haber-Kucharsky <hakuch@gmail.com>";
pkgs/development/libraries/alembic/default.nixnew file+47
@@ -0,0 +1,47 @@
1+{ stdenv, fetchFromGitHub, unzip, cmake, openexr, hdf5 }:
2+
3+stdenv.mkDerivation rec
4+{
5+ name = "alembic-${version}";
6+ version = "1.7.4";
7+
8+ src = fetchFromGitHub {
9+ owner = "alembic";
10+ repo = "alembic";
11+ rev = "${version}";
12+ sha256 = "00r6d8xk2sq5hdl5lp14nhyh1b2d68fxpzbm69fk6iq2f2gv0iqv";
13+ };
14+
15+ outputs = [ "bin" "dev" "out" "lib" ];
16+
17+ buildInputs = [ unzip cmake openexr hdf5 ];
18+
19+ sourceRoot = "${name}-src";
20+
21+ enableParallelBuilding = true;
22+
23+ buildPhase = ''
24+ cmake -DUSE_HDF5=ON -DCMAKE_INSTALL_PREFIX=$out/ -DUSE_TESTS=OFF .
25+
26+ mkdir $out
27+ mkdir -p $bin/bin
28+ mkdir -p $dev/include
29+ mkdir -p $lib/lib
30+ '';
31+
32+ installPhase = ''
33+ make install
34+
35+ mv $out/bin $bin/
36+ mv $out/lib $lib/
37+ mv $out/include $dev/
38+ '';
39+
40+ meta = with stdenv.lib; {
41+ description = "An open framework for storing and sharing scene data";
42+ homepage = "http://alembic.io/";
43+ license = licenses.bsd3;
44+ platforms = platforms.all;
45+ maintainers = [ maintainers.guibou ];
46+ };
47+}
pkgs/development/libraries/openexrid-unstable/default.nixnew file+50
@@ -0,0 +1,50 @@
1+{ stdenv, fetchFromGitHub, unzip, re2, openfx, zlib, ilmbase, mesa, openexr }:
2+
3+stdenv.mkDerivation rec
4+{
5+ name = "openexrid-unstable-${version}";
6+ version = "2017-09-17";
7+
8+ src = fetchFromGitHub {
9+ owner = "MercenariesEngineering";
10+ repo = "openexrid";
11+ rev = "bec0081548a096f9bcdd1504970c96264b0fc050";
12+ sha256 = "0h4b74lv59p4hhrvrqdmlnchn2i0v5id4kl8xc7j26l9884q0383";
13+ };
14+
15+ outputs = [ "dev" "out" "lib" ];
16+
17+ patches = [ ./openexrid.patch ];
18+
19+ NIX_CFLAGS_COMPILE=''-I${ilmbase.dev}/include/OpenEXR
20+ -I${openexr.dev}/include/OpenEXR
21+ -I${openfx.dev}/include/OpenFX
22+ '';
23+
24+ buildInputs = [ unzip re2 openfx zlib ilmbase mesa openexr ];
25+
26+ enableParallelBuilding = true;
27+
28+ buildPhase = ''
29+ mkdir openexrid/release
30+
31+ PREFIX=$out make -C openexrid install
32+
33+ mkdir $dev;
34+ mkdir $lib;
35+ '';
36+
37+ installPhase = ''
38+ find $out
39+ mv $out/include $dev/
40+ mv $out/lib $lib/
41+ '';
42+
43+ meta = with stdenv.lib; {
44+ description = "OpenEXR files able to isolate any object of a CG image with a perfect antialiazing";
45+ homepage = "https://github.com/MercenariesEngineering/openexrid";
46+ maintainers = [ maintainers.guibou ];
47+ platforms = platforms.all;
48+ license = licenses.mit;
49+ };
50+}
pkgs/development/libraries/openexrid-unstable/openexrid.patchnew file+35
@@ -0,0 +1,35 @@
1+diff --git a/makefile b/makefile
2+index 7a92771..31ef664 100644
3+--- a/makefile
4++++ b/makefile
5+@@ -8,8 +8,8 @@ _openexrid:
6+ _openfx:
7+ make -C openfx
8+
9+-_test: _openexrid
10+- make -C test
11++#_test: _openexrid
12++# make -C test
13+
14+ clean:
15+ make -C openfx clean
16+diff --git a/makefile.config b/makefile.config
17+index 0c6cdfa..0166c4c 100644
18+--- a/makefile.config
19++++ b/makefile.config
20+@@ -4,7 +4,7 @@
21+
22+ PREFIX ?= ~/openexrid
23+
24+-OFX_INCLUDE ?= /usr/include/openfx
25++OFX_INCLUDE ?= /usr/include/OpenFX
26+ EXR_INCLUDE ?= /usr/include/OpenEXR
27+ EXR_LIB ?= /usr/lib
28+ RE2_INCLUDE ?= /usr/include
29+@@ -13,5 +13,5 @@ RE2_LIB ?= /usr/lib
30+ VERSION ?= release
31+ CPPFLAGS += -O3 -Wall -DNDEBUG -fPIC -I $(EXR_INCLUDE) -I $(OFX_INCLUDE) -I $(RE2_INCLUDE) -Dlinux
32+ LDFLAGS += -L$(EXR_LIB) -L$(RE2_LIB) -L../openexrid/$(VERSION) -lpthread
33+-LDFLAGS += -Wl,-Bstatic -lopenexrid -lIlmImf -lIlmThread -lIex -lImath -lHalf -lz -lre2 -Wl,-Bdynamic
34++LDFLAGS += -lopenexrid -lIlmImf -lIlmThread -lIex -lImath -lHalf -lz -lre2 -Wl,-Bdynamic
35+
pkgs/development/libraries/openfx/default.nixnew file+38
@@ -0,0 +1,38 @@
1+{ stdenv, fetchFromGitHub, unzip }:
2+
3+stdenv.mkDerivation rec
4+{
5+ name = "openfx-${version}";
6+ version = "1.4";
7+
8+ src = fetchFromGitHub {
9+ owner = "ofxa";
10+ repo = "openfx";
11+ rev = "OFX_Release_1_4_TAG";
12+ sha256 = "0k9ggzr6bisn77mipjfvawg3mv4bz50b63v8f7w1jhldi1sfy548";
13+ };
14+
15+ buildInputs = [ unzip ];
16+
17+ outputs = [ "dev" "out" ];
18+
19+ enableParallelBuilding = true;
20+
21+ buildPhase = ''
22+ mkdir $dev
23+ mkdir $out
24+ '';
25+
26+ installPhase = ''
27+ mkdir -p $dev/include/OpenFX/
28+ cp -r include/* $dev/include/OpenFX/
29+ '';
30+
31+ meta = with stdenv.lib; {
32+ description = "Image processing plug-in standard";
33+ homepage = "http://openeffects.org/";
34+ license = licenses.bsd3;
35+ platforms = platforms.all;
36+ maintainers = [ maintainers.guibou ];
37+ };
38+}
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/development/libraries/partio/default.nixnew file+52
@@ -0,0 +1,52 @@
1+{ stdenv, fetchFromGitHub, unzip, cmake, freeglut, mesa, zlib, swig, python, doxygen, xorg }:
2+
3+stdenv.mkDerivation rec
4+{
5+ name = "partio-${version}";
6+ version = "1.1.0";
7+
8+ src = fetchFromGitHub {
9+ owner = "wdas";
10+ repo = "partio";
11+ rev = "v${version}";
12+ sha256 = "0z7n5ay21ca7g7xb80v6jmr96x9k7vm7zawawvmx71yj32rg1n34";
13+ };
14+
15+ outputs = [ "dev" "out" "lib" ];
16+
17+ buildInputs = [ unzip cmake freeglut mesa zlib swig python doxygen xorg.libXi xorg.libXmu ];
18+
19+ sourceRoot = "partio-v${version}-src";
20+
21+ enableParallelBuilding = true;
22+
23+ buildPhase = ''
24+ sed 's/ADD_LIBRARY (partio /ADD_LIBRARY (partio SHARED /' -i ../src/lib/CMakeLists.txt
25+ CXXFLAGS="-std=c++11" cmake .
26+ make partio
27+
28+ mkdir $dev
29+ mkdir -p $lib/lib
30+ mkdir $out
31+ '';
32+
33+ # TODO:
34+ # Sexpr support
35+
36+ installPhase = ''
37+ mkdir $dev/lib
38+ mkdir -p $dev/include/partio
39+
40+ mv lib/libpartio.so $lib/lib
41+
42+ mv ../src/lib/* $dev/include/partio
43+ '';
44+
45+ meta = with stdenv.lib; {
46+ description = "C++ (with python bindings) library for easily reading/writing/manipulating common animation particle formats such as PDB, BGEO, PTC";
47+ homepage = "https://www.disneyanimation.com/technology/partio.html";
48+ license = licenses.bsd3;
49+ platforms = platforms.all;
50+ maintainers = [ maintainers.guibou ];
51+ };
52+}
pkgs/development/libraries/ptex/default.nixnew file+45
@@ -0,0 +1,45 @@
1+{ stdenv, fetchFromGitHub, zlib, python, cmake }:
2+
3+stdenv.mkDerivation rec
4+{
5+ name = "ptex-${version}";
6+ version = "2.1.28";
7+
8+ src = fetchFromGitHub {
9+ owner = "wdas";
10+ repo = "ptex";
11+ rev = "v${version}";
12+ sha256 = "1h6gb3mpis4m6ph7h9q764w50f9jrar3jz2ja76rn5czy6wn318x";
13+ };
14+
15+ outputs = [ "bin" "dev" "out" "lib" ];
16+
17+ buildInputs = [ zlib python cmake ];
18+
19+ sourceRoot = "ptex-v${version}-src";
20+
21+ enableParallelBuilding = true;
22+
23+ buildPhase = ''
24+ mkdir -p $out
25+
26+ make prefix=$out
27+
28+ mkdir -p $bin/bin
29+ mkdir -p $dev/include
30+ mkdir -p $lib/lib
31+ '';
32+
33+ installPhase = ''
34+ make install
35+ mv $out/bin $bin/
36+ '';
37+
38+ meta = with stdenv.lib; {
39+ description = "Per-Face Texture Mapping for Production Rendering";
40+ homepage = "http://ptex.us/";
41+ license = licenses.bsd3;
42+ platforms = platforms.all;
43+ maintainers = [ maintainers.guibou ];
44+ };
45+}
pkgs/top-level/all-packages.nix+12
@@ -10035,6 +10035,8 @@ with pkgs;
1003510035
1003610036 openexr = callPackage ../development/libraries/openexr { };
1003710037
10038+ openexrid-unstable = callPackage ../development/libraries/openexrid-unstable { };
10039+
1003810040 openldap = callPackage ../development/libraries/openldap { };
1003910041
1004010042 opencolorio = callPackage ../development/libraries/opencolorio { };
@@ -10059,6 +10061,8 @@ with pkgs;
1005910061
1006010062 openslp = callPackage ../development/libraries/openslp {};
1006110063
10064+ openvdb = callPackage ../development/libraries/openvdb {};
10065+
1006210066 inherit (callPackages ../development/libraries/libressl { })
1006310067 libressl_2_5
1006410068 libressl_2_6;
@@ -13625,6 +13629,8 @@ with pkgs;
1362513629
1362613630 airwave = callPackage ../applications/audio/airwave/default.nix { };
1362713631
13632+ alembic = callPackage ../development/libraries/alembic {};
13633+
1362813634 alchemy = callPackage ../applications/graphics/alchemy { };
1362913635
1363013636 alock = callPackage ../misc/screensavers/alock { };
@@ -15726,6 +15732,8 @@ with pkgs;
1572615732 ruby = ruby_2_1;
1572715733 };
1572815734
15735+ partio = callPackage ../development/libraries/partio {};
15736+
1572915737 pcmanfm = callPackage ../applications/misc/pcmanfm { };
1573015738
1573115739 pcmanfm-qt = lxqt.pcmanfm-qt;
@@ -15744,6 +15752,8 @@ with pkgs;
1574415752
1574515753 polybar = callPackage ../applications/misc/polybar { };
1574615754
15755+ ptex = callPackage ../development/libraries/ptex {};
15756+
1574715757 rssguard = libsForQt5.callPackage ../applications/networking/feedreaders/rssguard { };
1574815758
1574915759 scudcloud = callPackage ../applications/networking/instant-messengers/scudcloud { };
@@ -15888,6 +15898,8 @@ with pkgs;
1588815898
1588915899 opencpn = callPackage ../applications/misc/opencpn { };
1589015900
15901+ openfx = callPackage ../development/libraries/openfx {};
15902+
1589115903 openimageio = callPackage ../applications/graphics/openimageio { };
1589215904
1589315905 openjump = callPackage ../applications/misc/openjump { };