mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 19:45:54 +00:00
51 lines
1.3 KiB
Nix
51 lines
1.3 KiB
Nix
|
{ stdenv, fetchFromGitHub, unzip, re2, openfx, zlib, ilmbase, mesa, openexr }:
|
||
|
|
||
|
stdenv.mkDerivation rec
|
||
|
{
|
||
|
name = "openexrid-unstable-${version}";
|
||
|
version = "2017-09-17";
|
||
|
|
||
|
src = fetchFromGitHub {
|
||
|
owner = "MercenariesEngineering";
|
||
|
repo = "openexrid";
|
||
|
rev = "bec0081548a096f9bcdd1504970c96264b0fc050";
|
||
|
sha256 = "0h4b74lv59p4hhrvrqdmlnchn2i0v5id4kl8xc7j26l9884q0383";
|
||
|
};
|
||
|
|
||
|
outputs = [ "dev" "out" "lib" ];
|
||
|
|
||
|
patches = [ ./openexrid.patch ];
|
||
|
|
||
|
NIX_CFLAGS_COMPILE=''-I${ilmbase.dev}/include/OpenEXR
|
||
|
-I${openexr.dev}/include/OpenEXR
|
||
|
-I${openfx.dev}/include/OpenFX
|
||
|
'';
|
||
|
|
||
|
buildInputs = [ unzip re2 openfx zlib ilmbase mesa openexr ];
|
||
|
|
||
|
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/
|
||
|
'';
|
||
|
|
||
|
meta = with stdenv.lib; {
|
||
|
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;
|
||
|
};
|
||
|
}
|