2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, unzip, re2, openfx, zlib, ilmbase, libGLU, libGL, openexr }:
|
2017-09-17 21:31:28 +01:00
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "openexrid-unstable";
|
2017-09-17 21:31:28 +01:00
|
|
|
version = "2017-09-17";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "MercenariesEngineering";
|
|
|
|
repo = "openexrid";
|
|
|
|
rev = "bec0081548a096f9bcdd1504970c96264b0fc050";
|
|
|
|
sha256 = "0h4b74lv59p4hhrvrqdmlnchn2i0v5id4kl8xc7j26l9884q0383";
|
|
|
|
};
|
|
|
|
|
|
|
|
outputs = [ "dev" "out" "lib" ];
|
|
|
|
|
|
|
|
patches = [ ./openexrid.patch ];
|
|
|
|
|
2018-03-23 23:06:46 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace openexrid/makefile \
|
|
|
|
--replace g++ c++
|
|
|
|
'';
|
|
|
|
|
2017-09-17 21:31:28 +01:00
|
|
|
NIX_CFLAGS_COMPILE=''-I${ilmbase.dev}/include/OpenEXR
|
|
|
|
-I${openexr.dev}/include/OpenEXR
|
|
|
|
-I${openfx.dev}/include/OpenFX
|
|
|
|
'';
|
|
|
|
|
2021-02-20 21:01:53 +00:00
|
|
|
nativeBuildInputs = [ unzip ];
|
|
|
|
buildInputs = [ re2 openfx zlib ilmbase libGLU libGL openexr ];
|
2017-09-17 21:31:28 +01:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
mkdir openexrid/release
|
|
|
|
|
|
|
|
PREFIX=$out make -C openexrid install
|
|
|
|
|
|
|
|
mkdir $dev;
|
|
|
|
mkdir $lib;
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
find $out
|
|
|
|
mv $out/include $dev/
|
|
|
|
mv $out/lib $lib/
|
2018-03-23 23:06:46 +00:00
|
|
|
'';
|
2017-09-17 21:31:28 +01:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2017-09-17 21:31:28 +01:00
|
|
|
description = "OpenEXR files able to isolate any object of a CG image with a perfect antialiazing";
|
|
|
|
homepage = "https://github.com/MercenariesEngineering/openexrid";
|
|
|
|
maintainers = [ maintainers.guibou ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|