2018-06-26 13:21:07 +00:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, pkgconfig, opencv, zlib
|
|
|
|
, libxml2, freetype, libjpeg, libtiff, swig, openexr
|
|
|
|
, ilmbase, boost165
|
2020-06-07 12:55:45 +00:00
|
|
|
, withPython ? true, python3
|
2018-06-26 13:21:07 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "yafaray-core";
|
2020-05-20 03:33:49 +00:00
|
|
|
version = "3.4.4";
|
2018-06-26 13:21:07 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "YafaRay";
|
|
|
|
repo = "Core";
|
2018-07-19 19:38:15 +00:00
|
|
|
rev = "v${version}";
|
2020-05-20 03:33:49 +00:00
|
|
|
sha256 = "140vnaihz09rdvp0mqgrs26b3a2fv5wm49ar6817p4qklfx71l0g";
|
2018-06-26 13:21:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
NIX_CFLAGS_COMPILE+=" -isystem ${ilmbase.dev}/include/OpenEXR"
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
cmake pkgconfig boost165 opencv zlib libxml2 freetype libjpeg libtiff
|
|
|
|
swig openexr ilmbase
|
2020-06-07 12:55:45 +00:00
|
|
|
] ++ stdenv.lib.optional withPython python3;
|
2018-06-26 13:21:07 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A free, open source raytracer";
|
2020-04-09 10:03:01 +00:00
|
|
|
homepage = "http://www.yafaray.org";
|
2018-06-26 13:21:07 +00:00
|
|
|
maintainers = with maintainers; [ hodapp ];
|
|
|
|
license = licenses.lgpl21;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
# TODO: Add optional Ruby support
|
|
|
|
# TODO: Add Qt support? (CMake looks for it, but what for?)
|