1 { lib, stdenv, fetchFromGitHub, re2, openfx, zlib, ilmbase, libGLU, libGL, openexr }:
4 pname = "openexrid-unstable";
5 version = "2017-09-17";
7 src = fetchFromGitHub {
8 owner = "MercenariesEngineering";
10 rev = "bec0081548a096f9bcdd1504970c96264b0fc050";
11 sha256 = "0h4b74lv59p4hhrvrqdmlnchn2i0v5id4kl8xc7j26l9884q0383";
14 outputs = [ "dev" "out" "lib" ];
16 patches = [ ./openexrid.patch ];
19 substituteInPlace openexrid/makefile \
23 env.NIX_CFLAGS_COMPILE = ''-I${ilmbase.dev}/include/OpenEXR
24 -I${openexr.dev}/include/OpenEXR
25 -I${openfx.dev}/include/OpenFX
28 buildInputs = [ re2 openfx zlib ilmbase libGLU libGL openexr ];
30 enableParallelBuilding = true;
33 mkdir openexrid/release
35 PREFIX=$out make -C openexrid install
48 description = "OpenEXR files able to isolate any object of a CG image with a perfect antialiazing";
49 homepage = "https://github.com/MercenariesEngineering/openexrid";
50 maintainers = [ maintainers.guibou ];
51 platforms = platforms.all;
52 license = licenses.mit;